From: Eric Bollengier Date: Mon, 3 Mar 2008 18:38:49 +0000 (+0000) Subject: ebl Add some print_debug function X-Git-Tag: Release-3.0.0~1763 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=10bec5e9ee3fca288c2e455b0dc3ea6b33e78a27;p=bacula%2Fbacula ebl Add some print_debug function git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6527 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/functions b/regress/scripts/functions index 656b731733..78fbffda28 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -44,6 +44,13 @@ set_debug() fi } +print_debug() +{ + if test "$debug" -eq 1 ; then + echo $* + fi +} + run_bacula() { debug_wait diff --git a/regress/tests/accurate-test b/regress/tests/accurate-test index 5d54194cdb..fd0741ffa0 100755 --- a/regress/tests/accurate-test +++ b/regress/tests/accurate-test @@ -312,12 +312,14 @@ run_bconsole grep yyy ${cwd}/tmp/log3.out > /dev/null if [ $? != 0 ] ; then - bstat=2 + print_debug "Can't find xxx file into 'list files' output (${cwd}/tmp/log3.out)" + dstat=2 fi if grep zzz ${cwd}/tmp/log3.out > /dev/null then - bstat=2 + print_debug "Can't find zzz file into 'list files' output (${cwd}/tmp/log3.out)" + dstat=2 fi stop_bacula