]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/exclude-dir-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / exclude-dir-test
index 8c9334adb736dbeb11729ad01511934be3886a17..b60bb8b80b95da5ed8a317f6ff1c8225119d7f54 100755 (executable)
@@ -38,7 +38,7 @@ cp -f $tmp/1 $conf/bacula-dir.conf
 change_jobname CompressedTest $JobName
 start_test
 
-mkdir ${cwd}/build/src/xxtestdir
+mkdir -p ${cwd}/build/src/xxtestdir
 touch ${cwd}/build/src/xxtestdir/.nobkp
 cp ${cwd}/build/src/dird/*.c ${cwd}/build/src/xxtestdir
 
@@ -79,7 +79,7 @@ fi
 
 # build/po is included 2 times with a different exclude file
 # we shouldn't see scripts and bin
-nb=$(grep -e 'build/po/fr.po$' $tmp/log3.out | wc -l)
+nb=`egrep -c 'build/po/fr.po$' $tmp/log3.out`
 if [ $nb != 2 ]; then
     print_debug "ERROR: Should see fr.po two times"
     bstat=2