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
-
else
diff tmp/normal tmp/real > /dev/null
fi
-
dstat=$?
else
diff tmp/normal4 tmp/real4 > /dev/null
fi
-
-dstat=`expr $? + $dstat`
+if [ $dstat -eq 0 ] ; then
+ dstat=$?
+ if [ $dstat -ne 0 ] ; then
+ echo "normal4 and real4 differ!!!!!"
+ echo "normal4 and real4 differ!!!!!" >>test.out
+ fi
+fi
# try to break the old code
# in this situation, we have 1 available volume (vol50) and bacula will try to use