]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-hashsum-verification
tests: support 'installed' release in insertpackage
[apt.git] / test / integration / test-hashsum-verification
index 2a400dcb47417717eba670c3fad1db456e1e05f0..5f88110b3f13cdc2f55c53460be57dcf301d5272 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-insecure-repositories >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