From: Eric Bollengier Date: Mon, 3 Mar 2008 18:38:49 +0000 (+0000) Subject: ebl Add some print_debug function X-Git-Tag: Release-7.0.0~4915 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d18c099460291611f866293a3d714d747148bb98;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