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
run job=backup level=incremental yes
wait
messages
+list files jobid=4
@#
@# now do a restore
@#
grep -e ' 0 *|' ${cwd}/tmp/log3.out > /dev/null
if [ $? -ne 0 ]; then
- print_debug "Can't purge the base job"
- dstat=2
+ print_debug "ERROR: Can't purge the base job"
+ estat=1
fi
run level=full job=backup yes
wait
messages
-@$out ${cwd}/tmp/log5.out
+@out ${cwd}/tmp/log5.out
list basefiles jobid=6
-@$out ${cwd}/tmp/log6.out
+@out ${cwd}/tmp/log6.out
list files jobid=6
messages
END_OF_DATA
run_bconsole
-grep po/fr.po ${cwd}/tmp/log5.out > /dev/null
+grep "po/fr.po^" ${cwd}/tmp/log5.out > /dev/null
if [ $? -eq 0 ]; then
- print_debug "Should not display fr.po as basefile"
- bstat=2
+ print_debug "ERROR: Should not display fr.po as basefile"
+ estat=2
fi
-export bstat dstat
+export bstat dstat estat
stop_bacula
end_test