]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-ubuntu-bug-784473-InRelease-one-message-only
test: Use :$(id -gn) instead of :root (when run as root)
[apt.git] / test / integration / test-ubuntu-bug-784473-InRelease-one-message-only
index dbcb49a41311010b79d6ad19b32c6abcd8b2d93b..fe42ba83de2c4789bc75e71e30c1cb0e3cfd553a 100755 (executable)
@@ -1,18 +1,16 @@
 #!/bin/sh
 set -e
 
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 setupenvironment
 configarchitecture 'i386'
 
 insertpackage 'unstable' 'apt' 'i386' '0.8.11'
 
-setupaptarchive
+export APT_DONT_SIGN='Release.gpg'
+setupaptarchive --no-update
 
-rm -rf rootdir/var/lib/apt/lists
-
-find aptarchive/ -name 'Release.gpg' -delete
 find aptarchive/ -name 'InRelease' -exec cp {} {}.old \;
 
 for RELEASE in $(find aptarchive/ -name 'InRelease'); do
@@ -28,7 +26,7 @@ MD5Sum:
 done
 
 testfailure aptget update
-testsuccess grep '^W:.*Clearsigned file .*NOSPLIT.*' rootdir/tmp/testfailure.output
+testsuccess grep '^E:.*Clearsigned file .*NOSPLIT.*' rootdir/tmp/testfailure.output
 
 
 ROOTDIR="$(readlink -f .)"