From: Eric Bollengier Date: Thu, 17 Jun 2010 07:30:59 +0000 (+0200) Subject: regress: update base-job-test X-Git-Tag: Release-7.0.0~1731 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f63a5b0d2c1b708a850deaadb9d751db82a1a08a;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