From 10bec5e9ee3fca288c2e455b0dc3ea6b33e78a27 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 3 Mar 2008 18:38:49 +0000 Subject: [PATCH] ebl Add some print_debug function git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6527 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/functions | 7 +++++++ regress/tests/accurate-test | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) 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 -- 2.39.5