summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-12-14 16:43:27 +0100
committerJulian Andres Klode <jak@debian.org>2015-12-14 16:43:27 +0100
commit56873870ce6c118b3ce58f7d7cc9b5762f2be113 (patch)
tree58a21d919a07b8260500c1e8323c78e020a95f27
parent6755060951828412e19e58afe5361f9ad06e5deb (diff)
test-apt-download-progress: Run the https test multiple times
This filters out errors due to timing issues. Early exits if enough pulses occured.
-rwxr-xr-xtest/integration/test-apt-download-progress9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/integration/test-apt-download-progress b/test/integration/test-apt-download-progress
index 09c596715..b316b93ef 100755
--- a/test/integration/test-apt-download-progress
+++ b/test/integration/test-apt-download-progress
@@ -34,8 +34,13 @@ testsuccess --nomsg apthelper download-file "http://localhost:${APTHTTPPORT}/$TE
assertprogress apt-progress.log
msgtest 'download progress works via' 'https'
-exec 3> apt-progress.log
-testsuccess --nomsg apthelper download-file "https://localhost:${APTHTTPSPORT}/$TESTFILE" ./downloaded/https-$TESTFILE $OPT -o Acquire::https::Dl-Limit=600
+for i in 1 2 3 4 5; do
+ exec 3> apt-progress.log
+ testsuccess --nomsg apthelper download-file "https://localhost:${APTHTTPSPORT}/$TESTFILE" ./downloaded/https-$TESTFILE $OPT -o Acquire::https::Dl-Limit=600
+ if [ "$(wc -l apt-progress.log | awk '{print $1}')" -ge 3 ]; then
+ break
+ fi
+done
assertprogress apt-progress.log
# cleanup