Browse Source

test-apt-download-progress: Allow smaller progress change

Instead of checking for [10%, 100%), check for (0%, 100%),
that is everything < 100% and >0%.

Gbp-Dch: ignore
tags/debian/1.1.5
Julian Andres Klode 5 years ago
parent
commit
5146566b02
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/integration/test-apt-download-progress

+ 1
- 1
test/integration/test-apt-download-progress View File

@@ -13,7 +13,7 @@ changetohttpswebserver
assertprogress() {
T="$1"
testsuccess grep "dlstatus:1:0:Retrieving file 1 of 1" "$T"
if ! grep -E -q "dlstatus:1:[1-9][0-9](\..*)?:Retrieving file 1 of 1" "$T"; then
if ! grep -E -q "dlstatus:1:(0\..*|([1-9](\..*)?)|[1-9][0-9](\..*)?):Retrieving file 1 of 1" "$T"; then
cat "$T"
msgfail "Failed to detect download progress"
fi


Loading…
Cancel
Save