From: Kern Sibbald Date: Thu, 15 Oct 2009 15:50:43 +0000 (+0200) Subject: Add comments to fileregexp test X-Git-Tag: Release-5.0.0~285^2~1^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ba37b58243a8a3efb14864e63a767b27291f9a1e;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`