]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/regexwhere-test
Fix regexwhere test
[bacula/bacula] / regress / tests / regexwhere-test
index 692bd60b3670e68199d04904710fc808baf0a10e..eaaa3fe6faf16e9986c0cc0545b269e78c99e774 100755 (executable)
@@ -13,6 +13,16 @@ scripts/copy-test-confs
 
 /bin/cp -f scripts/bacula-dir.conf.regexwhere bin/bacula-dir.conf
 
+#
+# 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