]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/base-job-test
regress: update base-job-test
[bacula/bacula] / regress / tests / base-job-test
index 6eada768e14214ea605a3c4dc07c9f1d50253221..90222eaf81f160b3be0222719f50b4a4a3a0862d 100755 (executable)
@@ -103,7 +103,13 @@ rm -rf ${cwd}/tmp/bacula-restores
 
 grep -e 'FD Bytes Written: *0' ${cwd}/tmp/log4.out > /dev/null
 if [ $? -ne 0 ]; then
-    print_debug "The first full job should have 0 byte in log4.out"
+    print_debug "ERROR: The first full job should have 0 byte in log4.out"
+    bstat=2
+fi
+
+grep -e 'Using BaseJobId(s): 1$'  ${cwd}/tmp/log4.out > /dev/null
+if [ $? -ne 0 ]; then
+    print_debug "ERROR: The first full job should use only jobid=1 as basejob"
     bstat=2
 fi