From: Kern Sibbald Date: Sun, 15 Nov 2009 15:59:03 +0000 (+0100) Subject: Tweak weird-files debug output X-Git-Tag: Release-7.0.0~2569 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=be25cfeea2c9a56f703df7de7043e01a50d21c1b;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