]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix test script to account for unpredictability of Test3 page counts.
authorMichael R Sweet <michaelrsweet@gmail.com>
Thu, 22 Mar 2018 13:32:58 +0000 (09:32 -0400)
committerMichael R Sweet <michaelrsweet@gmail.com>
Thu, 22 Mar 2018 13:32:58 +0000 (09:32 -0400)
test/run-stp-tests.sh

index d4d768e0626f326589bd92c8cb0d7b39d435dc78..1063be4d09e8a1ccbededbb7dd077341c53bd370 100755 (executable)
@@ -917,8 +917,8 @@ fi
 
 # Paged printed on Test3
 count=`$GREP '^Test3 ' $BASE/log/page_log | awk 'BEGIN{count=0}{count=count+$7}END{print count}'`
-expected=4
-if test $count != $expected; then
+expected=2
+if test $count -lt $expected; then
        echo "FAIL: Printer 'Test3' produced $count page(s), expected $expected."
        echo "    <p>FAIL: Printer 'Test3' produced $count page(s), expected $expected.</p>" >>$strfile
        fail=`expr $fail + 1`