From: Kern Sibbald Date: Thu, 5 Nov 2009 19:48:55 +0000 (+0100) Subject: More debug when test fails X-Git-Tag: Release-7.0.0~2596^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f0c6ac5acd28f8093b7d955fe3ccef11712a41e2;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