]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:script: Fix jobid check in test_smbspool.sh
authorAndreas Schneider <asn@samba.org>
Tue, 12 Mar 2019 09:15:05 +0000 (10:15 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Mar 2019 07:49:17 +0000 (07:49 +0000)
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)

source3/script/tests/test_smbspool.sh

index d95ed06463415a0ec519bb2c5fc230f3cd2e29a1..f28c0909334825111bbf2a1d702ca9a5edb544d4 100755 (executable)
@@ -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