From: Kern Sibbald Date: Thu, 5 Nov 2009 19:48:55 +0000 (+0100) Subject: More debug when test fails X-Git-Tag: Release-5.0.0~279^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=05bef44b891c1571630c84458a2477ebbabee46f;p=bacula%2Fbacula More debug when test fails --- diff --git a/regress/tests/weird-files2-test b/regress/tests/weird-files2-test index 9db7b5695e..0dc17aa872 100755 --- a/regress/tests/weird-files2-test +++ b/regress/tests/weird-files2-test @@ -78,5 +78,8 @@ 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 $dstat -ne 0; then + diff -u ${cwd}/tmp/original ${cwd}/tmp/restored +fi end_test