]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/migration-job-test
Update
[bacula/bacula] / regress / tests / migration-job-test
index 6de8ccb4190c748a28722d73671583a266a7cb70..67a7ffe7a22a64881c699b61e036bdf1afc059ab 100755 (executable)
@@ -13,7 +13,7 @@ JobName=MigrationJobSave
 scripts/cleanup
 scripts/copy-migration-confs
 scripts/prepare-two-disks
-echo "${cwd}/build" >/tmp/file-list
+echo "${cwd}/build" >${cwd}/tmp/file-list
 
 change_jobname NightlySave $JobName
 start_test
@@ -25,10 +25,10 @@ start_test
 #              Pool Full    uses Storage=DiskChanger
 
 # Write out bconsole commands
-cat <<END_OF_DATA >tmp/bconcmds
+cat <<END_OF_DATA >${cwd}/tmp/bconcmds
 @output
 messages
-@$out tmp/log1.out
+@$out ${cwd}/tmp/log1.out
 @#setdebug level=100 storage=File
 label storage=File volume=FileVolume001 Pool=Default
 label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0
@@ -62,13 +62,14 @@ list jobs
 @# 
 @# now do a restore
 @#
-@$out tmp/log2.out
+@$out ${cwd}/tmp/log2.out
 list volumes 
 restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger
 unmark *
 mark *
 done
 yes
+list volumes
 wait
 messages
 @output