From: Eric Bollengier Date: Thu, 17 Jun 2010 07:30:59 +0000 (+0200) Subject: regress: update base-job-test X-Git-Tag: Release-5.0.3~159 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1526cd0d7538ef306713409dbbddd2f35d91b418;p=bacula%2Fbacula regress: update base-job-test --- diff --git a/regress/scripts/functions b/regress/scripts/functions index a000a7ea87..baa458649f 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -109,6 +109,10 @@ set_debug() print_debug() { + echo $* | grep ERROR > /dev/null + if test $? -eq 0; then + print_error="$print_error\n$*" + fi if test "$debug" -eq 1 ; then echo $* fi @@ -317,6 +321,7 @@ end_test() { cat ${working}/bacula.*.traceback 2>/dev/null cat ${working}/*.bactrace 2>/dev/null + echo -e $print_error if [ $estat != 0 ] ; then echo " " echo " !!!!! $TestName failed!!! `date +%R:%S` !!!!! " diff --git a/regress/tests/base-job-test b/regress/tests/base-job-test index 6eada768e1..90222eaf81 100755 --- a/regress/tests/base-job-test +++ b/regress/tests/base-job-test @@ -103,7 +103,13 @@ rm -rf ${cwd}/tmp/bacula-restores grep -e 'FD Bytes Written: *0' ${cwd}/tmp/log4.out > /dev/null if [ $? -ne 0 ]; then - print_debug "The first full job should have 0 byte in log4.out" + print_debug "ERROR: The first full job should have 0 byte in log4.out" + bstat=2 +fi + +grep -e 'Using BaseJobId(s): 1$' ${cwd}/tmp/log4.out > /dev/null +if [ $? -ne 0 ]; then + print_debug "ERROR: The first full job should use only jobid=1 as basejob" bstat=2 fi