From: Kern Sibbald Date: Sun, 15 Nov 2009 15:59:03 +0000 (+0100) Subject: Tweak weird-files debug output X-Git-Tag: Release-5.0.0~252 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b830bdf5da93a2a953e203b9e330ae34fb76d857;p=bacula%2Fbacula Tweak weird-files debug output --- diff --git a/regress/tests/weird-files-test b/regress/tests/weird-files-test index bd211f0b1d..1521d4eb4f 100755 --- a/regress/tests/weird-files-test +++ b/regress/tests/weird-files-test @@ -71,7 +71,11 @@ ${cwd}/bin/testls weird-files | sort >${cwd}/tmp/restored cd ${cwd} check_two_logs -#diff -u ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null -diff -u ${cwd}/tmp/original ${cwd}/tmp/restored -dstat=$? +if test "$debug" -eq 1; then + diff -u ${cwd}/tmp/original ${cwd}/tmp/restored + dstat=$? +else + diff -u ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null + dstat=$? +fi end_test