{
echo $* | grep ERROR > /dev/null
if test $? -eq 0; then
- print_error="$print_error\n$*"
+ echo $* >> $tmp/err.log
fi
if test "$debug" -eq 1 ; then
echo $*
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 [ -f $tmp/err.log ]; then
+ cat $tmp/err.log
+ fi
if [ $estat != 0 ] ; then
echo " "
echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! "