print_debug()
{
+ echo $* | grep ERROR > /dev/null
+ if test $? -eq 0; then
+ print_error="$print_error\n$*"
+ fi
if test "$debug" -eq 1 ; then
echo $*
fi
cat ${working}/*.bactrace 2>/dev/null
cp -f ${working}/*.bactrace ${dumps} 2>/dev/null
fi
+ cat ${working}/bacula.*.traceback 2>/dev/null
+ cat ${working}/*.bactrace 2>/dev/null
+ echo -e $print_error
if [ $estat != 0 ] ; then
echo " "
echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! "
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