From 7ce7ca35e126c38949614370eedd762d5f61676e Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 20 Nov 2010 17:47:33 +0100 Subject: [PATCH] regress: change delta test to find problems --- regress/tests/delta-test | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.39.5