]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-hashsum-verification
more test fixes
[apt.git] / test / integration / test-hashsum-verification
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