my $tests = [
# each test consists of the following:
-# name - unique name for the test which also serves as a dir name and
-# gets passed to make, so don't use whitespace or slash
+# name - unique name for the test which also serves as a dir name.
+# NOTE: gets passed to make, so don't use whitespace or slash
+# and adapt buildsys (regex) on code structure changes
# target - hostname of target node
# vmid - ID of the VM to migrate
# opts - options for the migrate() call
'with-local-disks' => 1,
},
expected_calls => {},
- expect_die => 'online storage migration not possible if snapshot exists',
+ expect_die => 'online storage migration not possible if non-replicated snapshot exists',
expected => {
source_volids => local_volids_for_vm(4567),
target_volids => {},
'with-local-disks' => 1,
},
target_volids => local_volids_for_vm(105),
- expected_calls => {},
- expect_die => "online storage migration not possible if snapshot exists",
+ expected_calls => {
+ %{$replicated_expected_calls_online},
+ 'block-dirty-bitmap-add-drive-scsi0' => 1,
+ 'block-dirty-bitmap-add-drive-ide0' => 1,
+ },
expected => {
source_volids => local_volids_for_vm(105),
target_volids => local_volids_for_vm(105),
my $single_test_name = shift;
-if (defined($single_test_name) && $single_test_name eq 'DUMP_NAMES') {
- my $output = '';
- foreach my $test (@{$tests}) {
- $output .= $test->{name} . ' ';
- }
- print "$output\n";
- exit 0;
-}
-
mkdir $RUN_DIR_PATH;
foreach my $test (@{$tests}) {