X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/1dd20368486820efb6ef4476ad739e967174bec4..8d1cb6da6e21302c654da3f09de3975af7e4a11f:/test/integration/test-apt-update-transactions diff --git a/test/integration/test-apt-update-transactions b/test/integration/test-apt-update-transactions index 8651d3a15..d8154b283 100755 --- a/test/integration/test-apt-update-transactions +++ b/test/integration/test-apt-update-transactions @@ -3,8 +3,8 @@ set -e # ensure that an update will only succeed entirely or not at all -TESTDIR=$(readlink -f $(dirname $0)) -. $TESTDIR/framework +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" setupenvironment configarchitecture 'i386' @@ -44,7 +44,8 @@ testrun() { signreleasefiles onehashbroken() { - testfailure aptget update + rm -rf rootdir/var/lib/apt/lists/partial + testfailure aptget update -o Debug::pkgAcquire::Worker=1 -o Debug::Acquire::http=1 # each file generates two messages with this string testequal '2' grep --count 'Hash Sum mismatch' rootdir/tmp/testfailure.output testfileequal "$1" "$(listcurrentlistsdirectory)"