From: Eric Bollengier Date: Sat, 20 Nov 2010 16:47:33 +0000 (+0100) Subject: regress: change delta test to find problems X-Git-Tag: Release-7.0.0~1372 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=842965955aeedfb76f33504a1f3bd6aad6b3c982;p=bacula%2Fbacula regress: change delta test to find problems --- diff --git a/regress/tests/delta-test b/regress/tests/delta-test index 80f5f01b98..d1e0b5dda5 100755 --- a/regress/tests/delta-test +++ b/regress/tests/delta-test @@ -90,4 +90,13 @@ check_two_logs stop_bacula +head -c 300 /etc/passwd > $tmp/source +diff -u $tmp/source $tmp/delta.txt > $tmp/d +if [ $? -ne 0 ]; then + print_debug "ERROR: delta.txt and source are different, restore failed" + print_debug `cat $tmp/d` + cat -ev $tmp/delta.* + dstat=1 +fi + end_test