diff options
author | Michael R Sweet <msweet@msweet.org> | 2020-11-22 08:37:49 -0500 |
---|---|---|
committer | Michael R Sweet <msweet@msweet.org> | 2020-11-22 08:37:49 -0500 |
commit | 09c18efc06c374afad7f1548ffe1355801d64274 (patch) | |
tree | f9a41d36eecef8b16a3a54e12ba6b8f7a2192e19 /test | |
parent | a72b0140ee9ad72f7ffc1f46fbe962bde159cbb8 (diff) |
Don't show waiting for jobs unless we are waiting for jobs...
Diffstat (limited to 'test')
-rwxr-xr-x | test/waitjobs.sh | 13 |
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 |