浏览代码

fix test-cve-2013-1051-InRelease-parsing (fails now in the method)

Michael Vogt 11 年之前
父节点
当前提交
c86bc8515a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/integration/test-cve-2013-1051-InRelease-parsing

+ 1 - 1
test/integration/test-cve-2013-1051-InRelease-parsing

@@ -42,7 +42,7 @@ touch -d '+1hour' aptarchive/dists/stable/InRelease
 # ensure the update fails
 # ensure the update fails
 # useful for debugging to add "-o Debug::pkgAcquire::auth=true"
 # useful for debugging to add "-o Debug::pkgAcquire::auth=true"
 msgtest 'apt-get update for should fail with the modified' 'InRelease'
 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
 # ensure there is no package
 testequal 'Reading package lists...
 testequal 'Reading package lists...