]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add some print_debug function
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 3 Mar 2008 18:38:49 +0000 (18:38 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 3 Mar 2008 18:38:49 +0000 (18:38 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6527 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions
regress/tests/accurate-test

index 656b7317338cc25c6937375794cfc803be04b3e3..78fbffda284411b9b32e10aa2b9cacc687d43641 100644 (file)
@@ -44,6 +44,13 @@ set_debug()
    fi
 } 
 
+print_debug()
+{
+   if test "$debug" -eq 1 ; then
+     echo $*
+   fi
+}
+
 run_bacula()
 {
    debug_wait
index 5d54194cdba0472dc08c36f77a099c260a0e7805..fd0741ffa026bd148ee6335f7eddb4e57474e4e0 100755 (executable)
@@ -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