From cc43f3cd3aa4ba7a85a8deaaf04058bc57e3c588 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 12 Mar 2019 10:15:05 +0100 Subject: 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 (cherry picked from commit fad5e4eaeb9202c1b63c42ea09254c17c473e33a) --- source3/script/tests/test_smbspool.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- cgit v1.2.1