From 09c18efc06c374afad7f1548ffe1355801d64274 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 22 Nov 2020 08:37:49 -0500 Subject: [PATCH] Don't show waiting for jobs unless we are waiting for jobs... --- test/waitjobs.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/waitjobs.sh b/test/waitjobs.sh index 79c1ab0570..b9ff2655ca 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 -- 2.47.2