X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fmigration-occupancy-test;h=5f19481677d6b7919b8ecd213d10f4127ddbaf80;hb=ef33273cecc466a71ce597c06024d8fac53fbe1d;hp=e5c9e35f783ebe3916b96f864c452815bf6c2083;hpb=49fe7fa03e1cb9abf822ab4e55a71d45f4ab12fd;p=bacula%2Fbacula diff --git a/regress/tests/migration-occupancy-test b/regress/tests/migration-occupancy-test index e5c9e35f78..5f19481677 100755 --- a/regress/tests/migration-occupancy-test +++ b/regress/tests/migration-occupancy-test @@ -8,14 +8,12 @@ TestName="migration-occupancy-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 @@ -46,11 +44,12 @@ run job=migrate-occupancy yes list volumes wait messages +purge volume=FileVolume001 wait @# @# now do a restore @# -@$out tmp/log2.out +@$out ${cwd}/tmp/log2.out restore where=${cwd}/tmp/bacula-restores select storage=DiskChanger unmark * mark *