diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-10-07 17:47:30 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-10-07 17:47:30 +0200 |
commit | c48eea97b93920062ea26001081d4fdf7eb967e3 (patch) | |
tree | 84e5609e0f35579a8ccca029794555fd6c0bbc80 /test/integration | |
parent | c86bc8515a3a195aa244a1743476b102d72c9a2a (diff) |
make expected-size a maximum-size check as this is what we want at this point
Diffstat (limited to 'test/integration')
-rwxr-xr-x | test/integration/test-apt-update-expected-size | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/test-apt-update-expected-size b/test/integration/test-apt-update-expected-size index 72812336d..c1eecc08a 100755 --- a/test/integration/test-apt-update-expected-size +++ b/test/integration/test-apt-update-expected-size @@ -15,6 +15,13 @@ changetowebserver # normal update works fine testsuccess aptget update +# make InRelease really big +mv aptarchive/dists/unstable/InRelease aptarchive/dists/unstable/InRelease.good +dd if=/dev/zero of=aptarchive/dists/unstable/InRelease bs=1M count=2 +touch -d '+1hour' aptarchive/dists/unstable/InRelease +aptget update -o acquire::MaxReleaseFileSize=$((1*1000*1000)) + + # 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 |