]> git.sur5r.net Git - bacula/bacula/commitdiff
regress: display ERROR properly
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 17 Jun 2010 12:02:01 +0000 (14:02 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:55 +0000 (16:53 +0200)
regress/scripts/functions

index 9ba6c465045761e5c3229baa5fd89c38b5ce1184..f782318241aa9af4841268327d4c1e4d417abb78 100644 (file)
@@ -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` !!!!! "