From be25cfeea2c9a56f703df7de7043e01a50d21c1b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 15 Nov 2009 16:59:03 +0100 Subject: [PATCH] Tweak weird-files debug output --- regress/tests/weird-files-test | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 -- 2.39.5