From: Eric Bollengier Date: Thu, 17 Jun 2010 12:02:01 +0000 (+0200) Subject: regress: display ERROR properly X-Git-Tag: Release-7.0.0~1724 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=92dff55727a86fdf9004032c3695041aed3b444d;p=bacula%2Fbacula regress: display ERROR properly --- diff --git a/regress/scripts/functions b/regress/scripts/functions index 9ba6c46504..f782318241 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -112,7 +112,7 @@ print_debug() { 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 $* @@ -326,9 +326,9 @@ end_test() 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` !!!!! "