X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/18908589a096719eb4ce76123596865093d6ff9d..b90faf2486b977aef0183e38a7f9c535a8a61a34:/test/integration/test-bug-633350-do-not-kill-last-char-in-Release diff --git a/test/integration/test-bug-633350-do-not-kill-last-char-in-Release b/test/integration/test-bug-633350-do-not-kill-last-char-in-Release index 988f8c9d0..d7dd261f6 100755 --- a/test/integration/test-bug-633350-do-not-kill-last-char-in-Release +++ b/test/integration/test-bug-633350-do-not-kill-last-char-in-Release @@ -1,27 +1,16 @@ #!/bin/sh set -e -TESTDIR=$(readlink -f $(dirname $0)) -. $TESTDIR/framework +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" setupenvironment configarchitecture 'amd64' insertpackage 'unstable' 'cool' 'amd64' '1.0' +export APT_DONT_SIGN='InRelease' 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 +testsuccess aptget update