summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-03-12 10:15:05 +0100
committerKarolin Seeger <kseeger@samba.org>2019-03-26 07:49:17 +0000
commitcc43f3cd3aa4ba7a85a8deaaf04058bc57e3c588 (patch)
treef9266a69ab0c519d031fb618428976e3efcb03ab
parentc7e7ea8d9539ce8bd37887092aa8130642969154 (diff)
downloadsamba-cc43f3cd3aa4ba7a85a8deaaf04058bc57e3c588.tar.gz
s3:script: Fix jobid check in test_smbspool.sh
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13832 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Bryan Mason <bmason@redhat.com> Signed-off-by: Guenther Deschner <gd@samba.org> (cherry picked from commit fad5e4eaeb9202c1b63c42ea09254c17c473e33a)
-rwxr-xr-xsource3/script/tests/test_smbspool.sh4
1 files 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