X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Faccurate-test;h=cab181c7f37c2df5a099f7c2ce97a3e33bd9d7ef;hb=792f8054d0110d47284665076247cb143da72db0;hp=001d1106d585de3cb6fba8cdb978b686421b8623;hpb=04f5e9b8e6134a58f6d4173c737dec775ca19de6;p=bacula%2Fbacula diff --git a/regress/tests/accurate-test b/regress/tests/accurate-test index 001d1106d5..cab181c7f3 100755 --- a/regress/tests/accurate-test +++ b/regress/tests/accurate-test @@ -33,8 +33,8 @@ rm -rf ${cwd}/build/accurate # add extra files -mkdir ${cwd}/build/accurate -mkdir ${cwd}/build/accurate/dirtest +mkdir -p ${cwd}/build/accurate +mkdir -p ${cwd}/build/accurate/dirtest echo "test test" > ${cwd}/build/accurate/dirtest/hello echo "test test" > ${cwd}/build/accurate/xxx echo "test test" > ${cwd}/build/accurate/yyy @@ -166,6 +166,7 @@ p Check with bls $bin/bls -c $conf/bacula-sd.conf -V 'TestVolume001' FileStorage > $tmp/bls.out grep -- '----' $tmp/bls.out | grep xxx > /dev/null if [ $? != 0 ] ; then + print_debug "ERROR: Should find deleted files into $tmp/bls.out" bstat=2 fi @@ -412,13 +413,13 @@ run_bconsole grep yyy ${cwd}/tmp/log3.out > /dev/null if [ $? != 0 ] ; then - print_debug "Can't find yyy file into 'list files' output (${cwd}/tmp/log3.out)" + print_debug "ERROR: Can't find yyy file into 'list files' output (${cwd}/tmp/log3.out)" dstat=2 fi -if grep zzz ${cwd}/tmp/log3.out > /dev/null -then - print_debug "Can't find zzz file into 'list files' output (${cwd}/tmp/log3.out)" +grep zzz ${cwd}/tmp/log3.out > /dev/null +if [ $? = 0 ] ; then + print_debug "ERROR: Should not find zzz file into 'list files' output (${cwd}/tmp/log3.out)" dstat=2 fi