Skip to content

Commit

Permalink
[Virtualization][MU]: Merge migration testsuites from 3 into 1
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-suse committed Jun 24, 2024
1 parent 912c77a commit 4c69c5d
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions lib/main_common.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2447,18 +2447,20 @@ sub load_hypervisor_tests {

if (check_var('ENABLE_VM_INSTALL', 1)) {
loadtest "virt_autotest/login_console";
loadtest "virtualization/universal/prepare_guests";
loadtest "virtualization/universal/waitfor_guests";
if (check_var('PATCH_WITH_ZYPPER', 1)) {
loadtest "virtualization/universal/patch_and_reboot";
if (my $update_package = get_var('UPDATE_PACKAGE')) {
if ($update_package eq 'kernel-default') {
loadtest "virt_autotest/login_console";
loadtest "virtualization/universal/list_guests";
loadtest "virtualization/universal/patch_guests";
} elsif ($update_package eq 'xen' || $update_package eq 'qemu') {
loadtest "virt_autotest/login_console";
loadtest "virtualization/universal/list_guests";
unless (check_var('VIRT_NEW_GUEST_MIGRATION_DST', '1')) {
loadtest "virtualization/universal/prepare_guests";
loadtest "virtualization/universal/waitfor_guests";
if (check_var('PATCH_WITH_ZYPPER', 1)) {
loadtest "virtualization/universal/patch_and_reboot";
if (my $update_package = get_var('UPDATE_PACKAGE')) {
if ($update_package eq 'kernel-default') {

Check warning on line 2456 in lib/main_common.pm

View workflow job for this annotation

GitHub Actions / CI: Running unit tests with perl v5.32

Code structure is deeply nested - severity 4

Consider refactoring
loadtest "virt_autotest/login_console";
loadtest "virtualization/universal/list_guests";
loadtest "virtualization/universal/patch_guests";
} elsif ($update_package eq 'xen' || $update_package eq 'qemu') {
loadtest "virt_autotest/login_console";
loadtest "virtualization/universal/list_guests";
}
}
}
}
Expand Down Expand Up @@ -2503,6 +2505,17 @@ sub load_hypervisor_tests {
}
check_and_load_mu_virt_features($module_switch, $function_modules, $host_hypervisor);
}

if (check_var('VIRT_NEW_GUEST_MIGRATION_SOURCE', '1')) {
loadtest "virt_autotest/login_console";
loadtest "virt_autotest/parallel_guest_migration_source";
}

if (check_var('VIRT_NEW_GUEST_MIGRATION_DST', '1')) {
loadtest "virt_autotest/parallel_guest_migration_barrier";
loadtest "virt_autotest/login_console";
loadtest "virt_autotest/parallel_guest_migration_destination";
}
}

sub load_extra_tests_syscontainer {
Expand Down

0 comments on commit 4c69c5d

Please sign in to comment.