소스 검색

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 10 년 전
부모
커밋
5146566b02
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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