]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-update-transactions
eipp: add Allow-Temporary-Remove-of-Essentials
[apt.git] / test / integration / test-apt-update-transactions
index 8651d3a157801d8c36095e189a32ec8a8f580b68..d8154b2837afa49a828188966936385d0490c214 100755 (executable)
@@ -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)"