]> git.saurik.com Git - apt.git/commitdiff
more test fixes
authorMichael Vogt <mvo@ubuntu.com>
Mon, 29 Sep 2014 09:47:03 +0000 (11:47 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Mon, 29 Sep 2014 09:47:03 +0000 (11:47 +0200)
test/integration/test-bug-596498-trusted-unsigned-repo
test/integration/test-hashsum-verification

index 06c9c82854e09a198a5aceffa86ef103c7489347..973520a9764d0e1fb83d6967d08cabe60c9c6937 100755 (executable)
@@ -12,7 +12,7 @@ setupaptarchive
 
 aptgetupdate() {
        rm -rf rootdir/var/lib/apt/ rootdir/var/cache/apt/*.bin
-       aptget update -qq
+       aptget update -qq --allow-unauthenticated
 }
 
 PKGTEXT="$(aptget install cool --assume-no -d | head -n 7)"
index 2a400dcb47417717eba670c3fad1db456e1e05f0..2db2bab0f44fc9db173570ad52e111b0818e2b2e 100755 (executable)
@@ -70,9 +70,13 @@ runtest() {
         rm -rf rootdir/var/lib/apt/lists
         rm aptarchive/InRelease aptarchive/Release.gpg
         msgtest 'unsigned apt-get update gets the expected hashsum mismatch'
-       aptget update 2>&1 | grep "Hash Sum mismatch" > /dev/null && msgpass || msgfail
-
-
+       aptget update --allow-unauthenticated >output.log 2>&1 || true
+        if grep -q "Hash Sum mismatch" output.log; then
+            msgpass
+        else
+            cat output.log
+            msgfail
+        fi
 }
 
 for COMPRESSEDINDEXES in 'false' 'true'; do