From: Kern Sibbald Date: Thu, 21 Jan 2010 10:25:44 +0000 (+0100) Subject: Add debug output to weird-files-test when it fails X-Git-Tag: Release-5.0.0~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f2bae68fcdcc1fc8322f169d06864cdaeb3b5d89;p=bacula%2Fbacula Add debug output to weird-files-test when it fails --- 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=$?