From: Andreas Schneider Date: Tue, 12 Mar 2019 09:15:05 +0000 (+0100) Subject: s3:script: Fix jobid check in test_smbspool.sh X-Git-Tag: talloc-2.2.0~65 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=fad5e4eaeb9202c1b63c42ea09254c17c473e33a s3:script: Fix jobid check in test_smbspool.sh BUG: https://bugzilla.samba.org/show_bug.cgi?id=13832 Signed-off-by: Andreas Schneider Reviewed-by: Bryan Mason Signed-off-by: Guenther Deschner --- diff --git a/source3/script/tests/test_smbspool.sh b/source3/script/tests/test_smbspool.sh index d95ed064634..f28c0909334 100755 --- a/source3/script/tests/test_smbspool.sh +++ b/source3/script/tests/test_smbspool.sh @@ -99,8 +99,8 @@ test_vlp_verify() fi jobid=$(echo "$out" | awk '/[0-9]+/ { print $1 };') - if [ $jobid -lt 1000 || $jobid -gt 2000 ]; then - echo "failed to get jobid" + if [ -z "$jobid" ] || [ $jobid -lt 100 || [ $jobid -gt 2000 ]; then + echo "Invalid jobid: $jobid" echo "$out" return 1 fi