summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-10-07 22:36:09 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-10-07 22:36:09 +0200
commitee27950632c149bb14c9c490e92147579ba4fc2a (patch)
tree2ad71178166534b7ebfd2813e7376139e1ec0de6 /test
parent27e6c17a18216e2a02de39a6d1722b83ac823d42 (diff)
Send "Fail-Reason: MaximumSizeExceeded" from the method
Communicate the fail reason from the methods to the parent and Rename() failed files.
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-apt-update-expected-size5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/integration/test-apt-update-expected-size b/test/integration/test-apt-update-expected-size
index f8ec24dcc..58920f544 100755
--- a/test/integration/test-apt-update-expected-size
+++ b/test/integration/test-apt-update-expected-size
@@ -19,7 +19,7 @@ testsuccess aptget update
mv aptarchive/dists/unstable/InRelease aptarchive/dists/unstable/InRelease.good
dd if=/dev/zero of=aptarchive/dists/unstable/InRelease bs=1M count=2 2>/dev/null
touch -d '+1hour' aptarchive/dists/unstable/InRelease
-aptget update -o acquire::MaxReleaseFileSize=$((1*1000*1000)) -o Debug::pkgAcquire::worker=0 > output.log
+aptget update -o Apt::Get::List-Cleanup=0 -o acquire::MaxReleaseFileSize=$((1*1000*1000)) -o Debug::pkgAcquire::worker=0 > output.log
msgtest 'Check that the max write warning is triggered'
if grep -q "Writing more data than expected" output.log; then
msgpass
@@ -27,8 +27,11 @@ else
cat output.log
msgfail
fi
+# ensure the failed InRelease file got renamed
+testsuccess ls rootdir/var/lib/apt/lists/partial/*InRelease.FAILED
mv aptarchive/dists/unstable/InRelease.good aptarchive/dists/unstable/InRelease
+
# append junk at the end of the Packages.gz/Packages
SIZE="$(stat --printf=%s aptarchive/dists/unstable/main/binary-i386/Packages)"
echo "1234567890" >> aptarchive/dists/unstable/main/binary-i386/Packages.gz