mirror of
https://github.com/samba-team/samba.git
synced 2025-01-31 01:48:16 +03:00
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)
This commit is contained in:
parent
c7e7ea8d95
commit
cc43f3cd3a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user