]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-633350-do-not-kill-last-char-in-Release
update test
[apt.git] / test / integration / test-bug-633350-do-not-kill-last-char-in-Release
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture 'amd64'
8
9 insertpackage 'unstable' 'cool' 'amd64' '1.0'
10
11 setupaptarchive --no-update
12
13 echo 'NotAutomatic: yes' >> aptarchive/dists/unstable/Release
14
15 signreleasefiles
16 find aptarchive/dists -name 'InRelease' -delete
17
18 rm -rf rootdir/var/lib/apt/lists
19
20 OUTPUT="$(aptget update 2>&1)"
21 msgtest 'Check that parsing happens without warnings' 'with missing newline'
22 if echo "${OUTPUT}" | grep '^W:' > /dev/null; then
23 msgfail
24 echo "${OUTPUT}"
25 else
26 msgpass
27 fi