X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fregexwhere-test;h=eaaa3fe6faf16e9986c0cc0545b269e78c99e774;hb=50ec9f3740f3d36fa77f2cecb5f28efc06061ce7;hp=bfc7e486fe468983531000901b49de72a97327d1;hpb=e948a34f18a32393e1b6769f97c47538b6c4077c;p=bacula%2Fbacula diff --git a/regress/tests/regexwhere-test b/regress/tests/regexwhere-test index bfc7e486fe..eaaa3fe6fa 100755 --- a/regress/tests/regexwhere-test +++ b/regress/tests/regexwhere-test @@ -13,7 +13,17 @@ scripts/copy-test-confs /bin/cp -f scripts/bacula-dir.conf.regexwhere bin/bacula-dir.conf -echo "${cwd}/build/po" >/tmp/file-list +# +# Remove the !restored from the messages resource because +# this test needs the restored listing to verify the +# restore results +# +outf="${cwd}/tmp/sed_tmp" +echo "s%, \!restored%%g" >${outf} +cp ${cwd}/bin/bacula-fd.conf ${cwd}/tmp/1 +sed -f ${outf} ${cwd}/tmp/1 >${cwd}/bin/bacula-fd.conf + +echo "${cwd}/build/po" >tmp/file-list start_test @@ -143,7 +153,7 @@ mod @## Where m 9 -/tmp/bacula-restore-it +tmp/bacula-restore-it m @## use add suffix 10 @@ -182,7 +192,7 @@ fi J=JobB # $cwd begins with / if grep -q "Restore OK" tmp/RUN_$J && - grep -q "/tmp/bacula-restore${cwd}/po/fr.po.old" tmp/RUN_$J + grep -q "tmp/bacula-restore${cwd}/po/fr.po.old" tmp/RUN_$J then [ "$debug" = 1 ] && echo $J ok else @@ -192,7 +202,7 @@ fi J=JobC if grep -q "Restore OK" tmp/RUN_$J && - grep -q "/tmp/bacula-restore${cwd}/build/po/fr.po" tmp/RUN_$J + grep -q "tmp/bacula-restore${cwd}/build/po/fr.po" tmp/RUN_$J then [ "$debug" = 1 ] && echo $J ok else @@ -231,7 +241,7 @@ fi J=JobG if grep -q "Restore OK" tmp/RUN_$J && - grep -q "/tmp/bacula-restore/build/po/fr.po" tmp/RUN_$J + grep -q "tmp/bacula-restore/build/po/fr.po" tmp/RUN_$J then [ "$debug" = 1 ] && echo $J ok else @@ -263,7 +273,7 @@ fi J=JobJ if grep -q "Restore OK" tmp/RUN_$J && grep -q "/etc/passwd.old" tmp/RUN_$J && - grep -q -e "Where: */tmp/bacula-restore-it" tmp/RUN_$J && + grep -q -e "Where: *tmp/bacula-restore-it" tmp/RUN_$J && grep -q "${cwd}/build/po/fr.po.old" tmp/RUN_$J then [ "$debug" = 1 ] && echo $J ok