From f63a5b0d2c1b708a850deaadb9d751db82a1a08a Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 17 Jun 2010 09:30:59 +0200 Subject: [PATCH] regress: update base-job-test --- regress/scripts/functions | 7 +++++++ regress/tests/base-job-test | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) 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 -- 2.39.5