X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=regress%2Ftests%2Fmigration-job-test;h=ac0ea2b979183f8ed5b3a2e2d46cc745853a3459;hb=5dd06f639b5e883410a3af50727706a3d16e4028;hp=9661a60f8e657c660975c24a2ef344641571448b;hpb=89cd7c0f6e11902f30d3de21fe2e0036ed79424b;p=bacula%2Fbacula diff --git a/regress/tests/migration-job-test b/regress/tests/migration-job-test index 9661a60f8e..ac0ea2b979 100755 --- a/regress/tests/migration-job-test +++ b/regress/tests/migration-job-test @@ -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 <tmp/bconcmds +cat <${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 @@ -49,16 +49,27 @@ messages list jobs list volumes wait +@# +@# Now do another backup, but level Incremental +@# +run job=$JobName level=Incremental yes +wait +messages +@# +@# This final job that runs should be Incremental and +@# not upgraded to full. +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