summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-update-hashsum-mismatch
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-11-06 08:57:59 +0100
committerMichael Vogt <mvo@ubuntu.com>2014-11-06 08:57:59 +0100
commitf8fac12c5fa287476b781c96807baaa534ef8f76 (patch)
tree222dd450a4bad958edc608ec575f27aed07ae68a /test/integration/test-apt-update-hashsum-mismatch
parent23e1a70b47329088a8f83bd94f5e774954c4c56a (diff)
parent9397ea947c23c0957a683152360909810340abce (diff)
Merge remote-tracking branch 'mvo/feature/no-more-acquire-guessing' into debian/experimental
Diffstat (limited to 'test/integration/test-apt-update-hashsum-mismatch')
-rwxr-xr-xtest/integration/test-apt-update-hashsum-mismatch13
1 files changed, 4 insertions, 9 deletions
diff --git a/test/integration/test-apt-update-hashsum-mismatch b/test/integration/test-apt-update-hashsum-mismatch
index 747418c53..c2c5b3887 100755
--- a/test/integration/test-apt-update-hashsum-mismatch
+++ b/test/integration/test-apt-update-hashsum-mismatch
@@ -33,16 +33,11 @@ for get in $(sed -n 's#^GET /\([^ ]\+\.gz\) HTTP.\+$#\1#p' aptarchive/webserver.
webserverconfig 'aptwebserver::overwrite' ''
webserverconfig "aptwebserver::overwrite::$(printf '%s' "${get}" | sed 's#/#%2F#g' )::filename" '%2FDoctorEvil.gz'
- TEST='testfailure'
- if expr match "$get" '^.*Translation-.*$' >/dev/null; then
- TEST='testsuccess'
- unset get
- fi
- $TEST aptget update
- cp rootdir/tmp/${TEST}.output rootdir/tmp/update.output
+ testfailure aptget update
+ cp rootdir/tmp/testfailure.output rootdir/tmp/update.output
testsuccess grep -E "$(basename -s '.gz' "$get").*Hash Sum mismatch" rootdir/tmp/update.output
- $TEST aptcache show foo
- $TEST aptget install foo -s
+ testfailure aptcache show foo
+ testfailure aptget install foo -s
testfailure aptcache show bar
testfailure aptget install bar -s