From: Eric Bollengier Date: Thu, 17 Jun 2010 07:30:59 +0000 (+0200) Subject: regress: update base-job-test X-Git-Tag: Release-5.2.1~1266 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0141638e59a045ff4aa19de3adc5974d70346d4b;p=bacula%2Fbacula regress: update base-job-test --- diff --git a/regress/scripts/functions b/regress/scripts/functions index 97402695fc..9ba6c46504 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -110,6 +110,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 @@ -322,6 +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 [ $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