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