]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/regexwhere-test
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / regress / tests / regexwhere-test
index da4412df6c25d05aa48e6a7f0a200103486e7eef..c2fa8ea88fd683e049dda1771434484867cdb09b 100755 (executable)
@@ -1,4 +1,9 @@
 #!/bin/sh
+#
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
+#
+
 #
 #  Test file relocation feature
 #
@@ -102,7 +107,7 @@ wait
 messages
 @##################################
 @$out tmp/RUN_JobG
-restore strip_prefix="${cwd}" add_prefix="/tmp/bacula-restore"
+restore strip_prefix="${cwd}" add_prefix="${tmp}/bacula-restore.$$"
 5
 cd ${cwd}/build/po
 m *.po
@@ -248,7 +253,7 @@ fi
 
 J=JobG
 grep "Restore OK"  tmp/RUN_$J > /dev/null && \
-grep "tmp/bacula-restore/build/po/fr.po" tmp/RUN_$J > /dev/null
+grep "tmp/bacula-restore.$$/build/po/fr.po" tmp/RUN_$J > /dev/null
 if [ $? = 0 ]
 then
     [ "$debug" = 1 ] && echo $J ok
@@ -256,6 +261,7 @@ else
    echo "$J in error"
    rstat=1
 fi
+rm -rf ${tmp}/bacula-restore.$$
 
 J=JobH
 grep "Restore OK"  tmp/RUN_$J > /dev/null && \