summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-update-empty-files
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-04-14 17:32:17 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-04-14 21:56:01 +0200
commitb2fd852459a6b9234255644730f48f071ccad64d (patch)
tree5ea9c6b0704894b641319fbe35eee281c414a0c2 /test/integration/test-apt-update-empty-files
parent479f6fa454cd6ee9e1bc4d9ecda856d34584092e (diff)
silently skip acquire of empty index files
There is just no point in taking the time to acquire empty files – especially as it will be tiny non-empty compressed files usually.
Diffstat (limited to 'test/integration/test-apt-update-empty-files')
-rwxr-xr-xtest/integration/test-apt-update-empty-files6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/integration/test-apt-update-empty-files b/test/integration/test-apt-update-empty-files
index e4f6d62bd..42329bb4b 100755
--- a/test/integration/test-apt-update-empty-files
+++ b/test/integration/test-apt-update-empty-files
@@ -17,9 +17,13 @@ msgmsg 'Test with file'
rm -rf rootdir/var/lib/apt/lists
testsuccess apt update -o Debug::pkgAcquire::Worker=1
cp rootdir/tmp/testsuccess.output apt.output
-testsuccess grep '%0aAlt-Filename:%20/.*/Sources%0a' apt.output
+testfailure grep '%0a\(Alt\)\?Filename:%20/.*/Sources\(\.gz\)\?%0a' apt.output
+testempty find rootdir/var/lib/apt/lists -name '*_Sources'
msgmsg 'Test with http'
changetowebserver
rm -rf rootdir/var/lib/apt/lists
testsuccess apt update -o Debug::pkgAcquire::Worker=1
+cp rootdir/tmp/testsuccess.output apt.output
+testfailure grep 'http:600.*Sources' apt.output
+testempty find rootdir/var/lib/apt/lists -name '*_Sources'