X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fmigration-jobspan-test;h=6910dde4bdec277c1a8ca5b44399a84efd908746;hb=795d9320e7918c0048252c84ea27ba843337bbd6;hp=838cb00b283708c1011b6c75a38785e1303ea639;hpb=96894476c2920b908cf160e61a2387e1a55a60bb;p=bacula%2Fbacula diff --git a/regress/tests/migration-jobspan-test b/regress/tests/migration-jobspan-test index 838cb00b28..6910dde4bd 100755 --- a/regress/tests/migration-jobspan-test +++ b/regress/tests/migration-jobspan-test @@ -10,14 +10,12 @@ TestName="migration-jobspan-test" JobName=MigrationJobSpanSave . 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 cp ${cwd}/bin/bacula-sd.conf ${cwd}/tmp/1 sed "s%# Maximum File Size% Maximum File Size%" ${cwd}/tmp/1 >${cwd}/bin/bacula-sd.conf @@ -32,11 +30,11 @@ start_test # Pool Full uses Storage=DiskChanger # Write out bconsole commands -cat <tmp/bconcmds +cat <${cwd}/tmp/bconcmds @output messages -@$out tmp/log1.out -@#setdebug level=100 dir +@$out ${cwd}/tmp/log1.out +@#setdebug level=10 dir @#setdebug level=100 storage=File label storage=File volume=FileVolume001 Pool=Default label storage=File volume=FileVolume002 Pool=Default @@ -49,9 +47,12 @@ run job=$JobName yes @#run job=$JobName yes wait list volumes +@#setdebug level=200 dir @# should migrate both Volumes run job=migrate-job yes wait +purge volume=FileVolume001 +purge volume=FileVolume002 list volumes list jobs messages @@ -59,7 +60,7 @@ 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 *