Procházet zdrojové kódy

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
Julian Andres Klode před 10 roky
rodič
revize
5146566b02
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      test/integration/test-apt-download-progress

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

@@ -13,7 +13,7 @@ changetohttpswebserver
 assertprogress() {
 assertprogress() {
     T="$1"
     T="$1"
     testsuccess grep "dlstatus:1:0:Retrieving file 1 of 1" "$T"
     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"
         cat "$T"
         msgfail "Failed to detect download progress"
         msgfail "Failed to detect download progress"
     fi
     fi