fix test-cve-2013-1051-InRelease-parsing (fails now in the method)
authorMichael Vogt <mvo@ubuntu.com>
Tue, 7 Oct 2014 11:17:16 +0000 (13:17 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Tue, 7 Oct 2014 11:17:16 +0000 (13:17 +0200)
test/integration/test-cve-2013-1051-InRelease-parsing

index 41b27f6..8f98039 100755 (executable)
@@ -42,7 +42,7 @@ touch -d '+1hour' aptarchive/dists/stable/InRelease
 # ensure the update fails
 # useful for debugging to add "-o Debug::pkgAcquire::auth=true"
 msgtest 'apt-get update for should fail with the modified' 'InRelease'
-aptget update 2>&1 | grep -q 'Hash Sum mismatch' > /dev/null && msgpass || msgfail
+aptget update 2>&1 | grep -E -q '(Writing more data than expected|Hash Sum mismatch)' > /dev/null && msgpass || msgfail
 
 # ensure there is no package
 testequal 'Reading package lists...