]> git.saurik.com Git - apt.git/commitdiff
test-apt-download-progress: Allow smaller progress change
authorJulian Andres Klode <jak@debian.org>
Mon, 14 Dec 2015 09:42:38 +0000 (10:42 +0100)
committerJulian Andres Klode <jak@debian.org>
Mon, 14 Dec 2015 09:42:38 +0000 (10:42 +0100)
Instead of checking for [10%, 100%), check for (0%, 100%),
that is everything < 100% and >0%.

Gbp-Dch: ignore

test/integration/test-apt-download-progress

index 64a122a06ab4397d3c7bdd51f79569ff2ed66bf7..07c61ababd836658012c899954a595dfc7bf72aa 100755 (executable)
@@ -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