From 17f43f8b1e9780810e91345f241d59ffbca056dd Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 21 Jan 2010 11:25:44 +0100 Subject: [PATCH] Add debug output to weird-files-test when it fails --- regress/tests/weird-files-test | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/regress/tests/weird-files-test b/regress/tests/weird-files-test index 1521d4eb4f..2292a3ac7d 100755 --- a/regress/tests/weird-files-test +++ b/regress/tests/weird-files-test @@ -74,6 +74,16 @@ check_two_logs if test "$debug" -eq 1; then diff -u ${cwd}/tmp/original ${cwd}/tmp/restored dstat=$? + if [ $dstat != 0 ] ; then + echo " " + echo "===== Original ======" + cat ${cwd}/tmp/original + echo "=====" + echo " " + echo "===== Restored ======" + cat ${cwd}/tmp/restored + echo "=====" + fi else diff -u ${cwd}/tmp/original ${cwd}/tmp/restored 2>&1 >/dev/null dstat=$? -- 2.39.5