From: Eric Bollengier Date: Thu, 17 Jun 2010 11:53:04 +0000 (+0200) Subject: regress: tweak lockmgr-test X-Git-Tag: Release-7.0.0~1726 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c4fd53b10bcb793979b127de5684ac109c68ff03;p=bacula%2Fbacula regress: tweak lockmgr-test --- diff --git a/regress/tests/lockmgr-test b/regress/tests/lockmgr-test index d1a88be4d8..8fa43849ad 100755 --- a/regress/tests/lockmgr-test +++ b/regress/tests/lockmgr-test @@ -28,14 +28,16 @@ start_test make -C $src/src/lib lockmgr_test > /dev/null if [ -f $src/src/lib/.libs/lockmgr_test ]; then - LD_LIBRARY_PATH=$src/src/lib/.libs $src/src/lib/.libs/lockmgr_test > $tmp/1 + LD_LIBRARY_PATH=$src/src/lib/.libs $src/src/lib/.libs/lockmgr_test > $tmp/1 2> $tmp/2 else - $src/src/lib/lockmgr_test > $tmp/1 + $src/src/lib/lockmgr_test > $tmp/1 2> $tmp/2 fi estat=$? -print_debug `cat $tmp/1` +if [ "$debug" eq 1 ]; then + cat $tmp/1 +fi cat <$tmp/bconcmds @$out /dev/null @@ -51,7 +53,7 @@ stop_bacula nb=`ls $working/*.traceback $working/*.bactrace | wc -l` if [ $nb != 4 ]; then - print_debug "Should find 4 traces, not $nb" + print_debug "ERROR: Should find 4 traces, not $nb" estat=1 fi