summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-633350-do-not-kill-last-char-in-Release
blob: 988f8c9d0f35dd76194a5ea879c9386495dc2e4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
set -e

TESTDIR=$(readlink -f $(dirname $0))
. $TESTDIR/framework
setupenvironment
configarchitecture 'amd64'

insertpackage 'unstable' 'cool' 'amd64' '1.0'

setupaptarchive --no-update

echo 'NotAutomatic: yes' >> aptarchive/dists/unstable/Release

signreleasefiles
find aptarchive/dists -name 'InRelease' -delete

rm -rf rootdir/var/lib/apt/lists

OUTPUT="$(aptget update 2>&1)"
msgtest 'Check that parsing happens without warnings' 'with missing newline'
if echo "${OUTPUT}" | grep '^W:' > /dev/null; then
	msgfail
	echo "${OUTPUT}"
else
	msgpass
fi