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-7.0.0~2349 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17f43f8b1e9780810e91345f241d59ffbca056dd;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=$?