X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fmigration-time-test;h=96e968bb021d01920cf2240667add65ca7fc652c;hb=bc38c90fe52f894841b458e808e8c8538cb4cd6b;hp=1adbb0e6d19102ee2935de7585875509799ee75a;hpb=8fccc8a5e1cac7acfbdd4f4b3ab29131824928ad;p=bacula%2Fbacula diff --git a/regress/tests/migration-time-test b/regress/tests/migration-time-test index 1adbb0e6d1..96e968bb02 100755 --- a/regress/tests/migration-time-test +++ b/regress/tests/migration-time-test @@ -8,14 +8,12 @@ TestName="migration-time-test" JobName=MigrationJobSave . scripts/functions -set_debug 0 -. config.out 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 @@ -27,10 +25,10 @@ start_test # Pool Full uses Storage=DiskChanger # Write out bconsole commands -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @output messages -@$out tmp/log1.out +@$out ${cwd}/tmp/log1.out label storage=File volume=FileVolume001 Pool=Default label storage=DiskChanger volume=ChangerVolume001 slot=1 Pool=Full drive=0 label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0 @@ -41,24 +39,22 @@ run job=$JobName level=Full yes run job=$JobName level=Full yes wait update volume=FileVolume001 VolStatus=Used -sql -update Job SET RealEndTime='2004-01-01 12:01:01' WHERE JobId IN (2,3); - llist jobid=2,3 list jobs list volumes +@#setdebug level=20 dir @# should migrate only jobid=2 and 3 run job=migrate-time yes wait messages wait -purge volume=FileVolume001 list jobs list volumes +purge volume=FileVolume001 @# @# now do a restore @# -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger unmark * mark *