]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't show waiting for jobs unless we are waiting for jobs...
authorMichael R Sweet <msweet@msweet.org>
Sun, 22 Nov 2020 13:37:49 +0000 (08:37 -0500)
committerMichael R Sweet <msweet@msweet.org>
Sun, 22 Nov 2020 13:37:49 +0000 (08:37 -0500)
test/waitjobs.sh

index 79c1ab0570c8d53614a572c019b26eb1e1e530db..b9ff2655ca854e4b9269a0617628e71655042950 100755 (executable)
@@ -30,6 +30,19 @@ else
         ac_c='\c'
 fi
 
+#
+# Check whether we have any jobs to wait for...
+#
+
+jobs=`$runcups ../systemv/lpstat 2>/dev/null | wc -l | tr -d ' '`
+if test $jobs = 0; then
+       exit 0
+fi
+
+#
+# We do, let the tester know what is going on...
+#
+
 echo $ac_n "Waiting for jobs to complete...$ac_c"
 oldjobs=0