From: Kern Sibbald Date: Thu, 15 Oct 2009 15:50:43 +0000 (+0200) Subject: Add comments to fileregexp test X-Git-Tag: Release-7.0.0~2602^2~1^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9feb4883c624ee9b00dd8c8ffe901aa5d298c042;p=bacula%2Fbacula Add comments to fileregexp test --- diff --git a/regress/tests/fileregexp-test b/regress/tests/fileregexp-test index 742c7a2ba5..e4dbe26786 100755 --- a/regress/tests/fileregexp-test +++ b/regress/tests/fileregexp-test @@ -51,6 +51,12 @@ run_bacula check_for_zombie_jobs storage=File stop_bacula +# +# The above restore should have restored some directories, but only +# files that have README in their name. There should in fact, be +# no other files restored COUNT_OTHER==0 and 13 README files restored. +# We complain if there are less than 11 +# COUNT_OTHER=`find ${tmp}/bacula-restores -type f | grep -v README | wc -l` COUNT_README=`find ${tmp}/bacula-restores -type f | grep README | wc -l`