]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/restore2-by-file-test
Update
[bacula/bacula] / regress / tests / restore2-by-file-test
index f8dfc8f12e400b8fe74fd2cff0c47a18b594b5e8..1a4553ab14693a0ecfe2edefd1afee0e35260934 100755 (executable)
@@ -8,16 +8,16 @@ JobName=restore2byfile
 . scripts/functions
 copy_test_confs
 
-echo "${cwd}/build" >/tmp/file-list
-sed s%\^%${cwd}% ${cwd}/scripts/flist >${cwd}/tmp/restore2-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
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output /dev/null
 messages
-@$out tmp/log1.out
+@$out ${cwd}/tmp/log1.out
 label storage=File volume=TestVolume001
 run job=$JobName yes
 wait
@@ -25,7 +25,7 @@ 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