From: Eric Bollengier Date: Thu, 17 Jun 2010 11:53:04 +0000 (+0200) Subject: regress: tweak lockmgr-test X-Git-Tag: Release-5.2.1~1261 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5e9d995fda32814d554ddc85bc09261408dbd8b9;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