stop_bacula()
{
bin/bacula stop 2>&1 >/dev/null
+ zstat=0
+ bstat=0
+ rstat=0
+ dstat=0
}
check_for_zombie_jobs()
if test $? -eq 0; then
rstat=4
fi
+ grep "Encoding error for database" tmp/log1.out > /dev/null
+ if test $? -eq 0; then
+ print_debug "Found database encoding error"
+ bstat=2
+ fi
}
check_restore_diff()
if [ $zstat != 0 ] ; then
echo " "
echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! "
+ echo " Status: zombie=$zstat backup=$bstat restore=$rstat diff=$dstat"
echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! " >>test.out
echo " Status: zombie=$zstat backup=$bstat restore=$rstat diff=$dstat" >>test.out
echo " "
echo " "
echo " "
echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! "
+ echo " Status: zombie=$zstat backup=$bstat restore=$rstat diff=$dstat"
echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! " >>test.out
+ echo " Status: zombie=$zstat backup=$bstat restore=$rstat diff=$dstat" >>test.out
if [ $bstat != 0 -o $rstat != 0 ] ; then
echo " !!!!! Bad termination status !!!!! "
echo " !!!!! Bad termination status !!!!! " >>test.out
AUTOCHANGER_SCRIPT=${AUTOCHANGER_SCRIPT:-mtx-changer}
LD_LIBRARY_PATH=$bin:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
-