]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/restore2-by-file-test
regress: add function to create many dirs
[bacula/bacula] / regress / tests / restore2-by-file-test
index e4376115099ae8dd0f2e5cf5e8477a8696e63ac2..7b3c2ecee0db46ff910c5d3e4fbf2bbe26367547 100755 (executable)
@@ -8,16 +8,16 @@ JobName=restore2byfile
 . scripts/functions
 copy_test_confs
 
-echo "${cwd}/build" >/tmp/file-list
+echo "${cwd}/build" >${cwd}/tmp/file-list
 sed s%\^%${cwd}% ${cwd}/scripts/flist | sort | uniq >${cwd}/tmp/restore2-list
 
 change_jobname CompressedTest $JobName
 start_test
 
-cat <<END_OF_DATA >tmp/bconcmds
-@output /dev/null
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
+@$out /dev/null
 messages
-@$out tmp/log1.out
+@$out ${cwd}/tmp/log1.out
 label storage=File volume=TestVolume001
 run job=$JobName yes
 wait
@@ -25,12 +25,11 @@ messages
 @# 
 @# now do a restore
 @#
-@$out tmp/log2.out
+@$out ${cwd}/tmp/log2.out
 restore where=${cwd}/tmp/bacula-restores storage=File file=<${cwd}/tmp/restore2-list
 yes
 wait
 messages
-@output
 quit
 END_OF_DATA