]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/small-file-size-tape
Use tmp instead of /tmp
[bacula/bacula] / regress / tests / small-file-size-tape
index 17676e51a26c319ed5ffdf4c62f2914c1ab9b638..73344ddc250a144503d309d0ebc7f8d20dc4897a 100755 (executable)
@@ -10,7 +10,7 @@ scripts/cleanup-tape
 echo "${cwd}/build" >/tmp/file-list
 bin/drop_sqlite_tables
 bin/make_sqlite_tables
-out="/tmp/sed_tmp"
+out="tmp/sed_tmp"
 echo "s%# Maximum File Size%  Maximum File Size%g" >${out}
 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1
 sed -f ${out} ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf
@@ -34,7 +34,7 @@ messages
 @# now do a restore
 @#
 @output tmp/log2.out
-restore current all
+restore where=${cwd}/tmp/bacula-restores current all
 yes
 wait
 messages
@@ -46,7 +46,7 @@ grep "^Termination: *Backup OK" tmp/log1.out 2>&1 >/dev/null
 bstat=$?
 grep "^Termination: *Restore OK" tmp/log2.out 2>&1 >/dev/null
 rstat=$?
-diff -r build /tmp/bacula-restores${cwd}/build
+diff -r build tmp/bacula-restores${cwd}/build
 if [ $? != 0 -o $bstat != 0 -o $rstat != 0 ] ; then
    echo " "
    echo " "