From: Eric Bollengier Date: Sat, 26 Feb 2011 08:19:11 +0000 (+0100) Subject: regress: Improve debug in base-job test X-Git-Tag: Release-7.0.0~1090 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3ed2a50fa32feba5307766909a2d8ff82385f131;p=bacula%2Fbacula regress: Improve debug in base-job test --- diff --git a/regress/scripts/functions b/regress/scripts/functions index 325f555628..7395361cd5 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -126,7 +126,7 @@ check_files_written() FILES=`awk '/FD Files Written:/ { last=$4 } END { print last }' $LOG` if [ "$NB" != "$FILES" ]; then - print_debug "Expect $NB files, get $FILES" + print_debug "ERROR: Expect $NB files, get $FILES" bstat=2 fi } diff --git a/regress/tests/base-job-test b/regress/tests/base-job-test index 90222eaf81..2104b1095d 100755 --- a/regress/tests/base-job-test +++ b/regress/tests/base-job-test @@ -123,6 +123,7 @@ label volume=TestVolume003 storage=File pool=Default run job=backup level=incremental yes wait messages +list files jobid=4 @# @# now do a restore @# @@ -165,7 +166,7 @@ run_bconsole grep -e ' 0 *|' ${cwd}/tmp/log3.out > /dev/null if [ $? -ne 0 ]; then - print_debug "Can't purge the base job" + print_debug "ERROR: Can't purge the base job" estat=1 fi @@ -191,7 +192,7 @@ run_bconsole grep "po/fr.po^" ${cwd}/tmp/log5.out > /dev/null if [ $? -eq 0 ]; then - print_debug "Should not display fr.po as basefile" + print_debug "ERROR: Should not display fr.po as basefile" estat=2 fi