]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/tests/migration-volume-test
Update
[bacula/bacula] / regress / tests / migration-volume-test
index 81d7a339e577fee1bf7c9c1a7e087dea052f6cc6..9365c720d4aaaa13f9fc9d4dfb3ad6f01d4e7cbc 100755 (executable)
@@ -6,15 +6,15 @@
 # This script uses the virtual disk autochanger
 #
 TestName="migration-volume-test"
-JobName=MigrationVolSave
+JobName=MigVolBackup
 . scripts/functions
-set_debug 1
+set_debug 0
 
 . config.out
 
+scripts/cleanup
 scripts/copy-migration-confs
 scripts/prepare-two-disks
-scripts/cleanup
 echo "${cwd}/build" >/tmp/file-list
 
 change_jobname NightlySave $JobName
@@ -37,13 +37,26 @@ label storage=DiskChanger volume=ChangerVolume002 slot=2 Pool=Full drive=0
 list volumes
 @# run two jobs (both will be migrated)
 run job=$JobName yes
+wait
 run job=$JobName yes
+@sleep 1
+status storage=File       
+@sleep 1
+status storage=File
+@sleep 1
+status storage=File
 wait
 update volume=FileVolume001 VolStatus=Used
 list volumes
 @# should migrate two jobs
 run job=migrate-volume yes
 list volumes
+@sleep 3
+status storage=DiskChanger
+@sleep 1
+status storage=DiskChanger
+@sleep 1
+status storage=DiskChanger
 wait
 messages
 @# 
@@ -67,5 +80,4 @@ stop_bacula
 
 check_two_logs
 check_restore_diff
-exit
 end_test