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-5.2.1~907 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7ce7ca35e126c38949614370eedd762d5f61676e;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