summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael R Sweet <msweet@msweet.org>2020-11-22 08:37:49 -0500
committerMichael R Sweet <msweet@msweet.org>2020-11-22 08:37:49 -0500
commit09c18efc06c374afad7f1548ffe1355801d64274 (patch)
treef9a41d36eecef8b16a3a54e12ba6b8f7a2192e19 /test
parenta72b0140ee9ad72f7ffc1f46fbe962bde159cbb8 (diff)
Don't show waiting for jobs unless we are waiting for jobs...
Diffstat (limited to 'test')
-rwxr-xr-xtest/waitjobs.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/waitjobs.sh b/test/waitjobs.sh
index 79c1ab057..b9ff2655c 100755
--- a/test/waitjobs.sh
+++ b/test/waitjobs.sh
@@ -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