echo " === Starting $TestName at `date +%R:%S` ===" >> ${working}/log
echo " "
export zstat
+ export estat
+ estat=0
zstat=0
bstat=0
rstat=0
{
debug_wait
zstat=0
+ estat=0
if test "$debug" -eq 1 ; then
${scripts}/bacula-ctl-sd start -m
${scripts}/bacula-ctl-fd start -m $1
dstat=$?
}
+# bstat is backup error
+# dstat is diff difference
+# estat is special error status (shown by print_debug message)
+# rstat is restore status
+# zstat is zombie job(s)
+#
end_test()
{
+ if [ $estat != 0 ] ; then
+ echo " "
+ echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! "
+ echo " Status: estat=$estat zombie=$zstat backup=$bstat restore=$rstat diff=$dstat"
+ echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! " >>test.out
+ echo " Status: estat=$estat zombie=$zstat backup=$bstat restore=$rstat diff=$dstat" >>test.out
+ echo " "
+ exit 1
+ fi
if [ $zstat != 0 ] ; then
echo " "
echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! "
grep -e ' 0 *|' ${cwd}/tmp/log3.out > /dev/null
if [ $? -ne 0 ]; then
print_debug "Can't purge the base job"
- dstat=2
+ estat=1
fi
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
+ estat=2
fi
-export bstat dstat
+export bstat dstat estat
stop_bacula
end_test