diff --git a/lib/service_check.pm b/lib/service_check.pm index 80d4cc5ddfaa..4ba174e8aa0b 100644 --- a/lib/service_check.pm +++ b/lib/service_check.pm @@ -336,7 +336,7 @@ sub check_services { my $srv_proc_name = $service->{$s}->{srv_proc_name}; my $support_ver = $service->{$s}->{support_ver}; my $service_type = 'Systemd'; - next unless (($service->{$s}->{before_migration} eq 'PASS') && _is_applicable($srv_pkg_name)); + next unless (_is_applicable($srv_pkg_name) && (($service->{$s}->{before_migration} eq 'PASS') || get_var('START_AFTER_TEST'))); record_info($srv_pkg_name, "service check after migration"); eval { if (is_sle($support_ver, get_var('ORIGIN_SYSTEM_VERSION'))) { diff --git a/schedule/migration/create_migrated_hdd_offline.yaml b/schedule/migration/create_migrated_hdd_offline.yaml new file mode 100644 index 000000000000..a54170e1d627 --- /dev/null +++ b/schedule/migration/create_migrated_hdd_offline.yaml @@ -0,0 +1,47 @@ +name: create_migrated_hdd_offline.yaml +description: | + This is for creating migrated hdd for regression test. + #REGRESSION_SERVICE: '1' means support service check test. '0' means doesn't + #support service check test, normally set '0' for package media test. +vars: + DESKTOP: 'gnome' + BOOT_HDD_IMAGE: 1 + ORIGIN_SYSTEM_VERSION: '%HDDVERSION%' + UPGRADE_TARGET_VERSION: '%VERSION%' + BOOTFROM: 'd' +schedule: + - migration/version_switch_origin_system + - boot/boot_to_desktop + - update/patch_sle + - migration/record_disk_info + - '{{install_service}}' + - migration/reboot_to_upgrade + - migration/version_switch_upgrade_target + - installation/isosize + - installation/bootloader + - installation/welcome + - installation/upgrade_select + - installation/scc_registration + - installation/addon_products_sle + - installation/resolve_dependency_issues + - installation/installation_overview + - installation/disable_grub_timeout + - installation/start_install + - installation/await_install + - installation/logs_from_installation_system + - installation/reboot_after_installation + - installation/grub_test + - installation/first_boot + - migration/post_upgrade + - console/system_prepare + - console/consoletest_setup + - console/zypper_lr + - console/check_os_release + - console/check_system_info + - shutdown/cleanup_before_shutdown + - shutdown/shutdown +conditional_schedule: + install_service: + REGRESSION_SERVICE: + 1: + - installation/install_service diff --git a/schedule/migration/create_migrated_hdd_online.yaml b/schedule/migration/create_migrated_hdd_online.yaml new file mode 100644 index 000000000000..65c72a6a5366 --- /dev/null +++ b/schedule/migration/create_migrated_hdd_online.yaml @@ -0,0 +1,45 @@ +name: create_migrated_hdd_online.yaml +description: | + This is for creating hdd for migration regression test. + #REGRESSION_SERVICE: '1' means support service check test. '0' means doesn't + #support service check test, normally set '0' for package media test. +vars: + DESKTOP: gnome + BOOT_HDD_IMAGE: 1 + ORIGIN_SYSTEM_VERSION: '%HDDVERSION%' + UPGRADE_TARGET_VERSION: '%VERSION%' +schedule: + - migration/version_switch_origin_system + - '{{online_migration_test}}' + - '{{install_service}}' + - migration/version_switch_upgrade_target + - migration/online_migration/pre_migration + - '{{migration_method}}' + - migration/online_migration/post_migration + - console/check_os_release + - console/check_system_info + - console/check_network + - console/system_state + - console/prepare_test_data + - console/consoletest_setup + - shutdown/cleanup_before_shutdown + - shutdown/shutdown +conditional_schedule: + migration_method: + MIGRATION_METHOD: + yast: + - migration/online_migration/yast2_migration + zypper: + - migration/online_migration/zypper_migration + online_migration_test: + ONLINE_MIGRATION: + 1: + - installation/isosize + - installation/bootloader + - migration/online_migration/online_migration_setup + - migration/online_migration/register_system + - migration/online_migration/zypper_patch + install_service: + REGRESSION_SERVICE: + 1: + - installation/install_service diff --git a/schedule/migration/regression.yaml b/schedule/migration/regression.yaml new file mode 100644 index 000000000000..2751bf3d3706 --- /dev/null +++ b/schedule/migration/regression.yaml @@ -0,0 +1,75 @@ +name: regression.yaml +description: | + This is for migration regression test. + #support service check test, normally set '0' for package media test. +vars: + DESKTOP: 'gnome' + BOOT_HDD_IMAGE: 1 + ORIGIN_SYSTEM_VERSION: '%HDDVERSION%' + UPGRADE_TARGET_VERSION: '%VERSION%' + BOOTFROM: 'd' +schedule: + - installation/bootloader_start + - boot/boot_to_desktop + - console/check_migration_features + - console/check_network + - console/system_state + - console/prepare_test_data + - console/check_upgraded_service + - migration/openldap_to_389ds +# - boot/grub_test_snapshot + - locale/keymap_or_locale + - console/supportutils + - console/force_scheduled_tasks + - console/textinfo + - console/hostname + - console/upgrade_snapshots + - console/x_vt + - console/pam + - console/btrfsmaintenance + - console/java + - console/cpio + - console/zypper_ref + - console/ncurses + - console/yast2_lan + - console/curl_https + - console/salt + - console/glibc_sanity + - console/glibc_tunables + - console/zypper_in + - console/zypper_log + - console/yast2_i + - console/yast2_bootloader + - console/vim + - console/firewall_enabled + - console/krb5 + - console/sshd + - console/ssh_cleanup + - console/mtab + - console/upgrade_snapshots + - console/zypper_lifecycle + - console/orphaned_packages_check + - console/consoletest_finish + - x11/desktop_runner + - x11/xterm + - x11/sshxterm + - x11/gnome_control_center + - x11/gnome_terminal + - x11/gedit + - x11/firefox + - x11/tomcat + - x11/eog + - x11/gnome_music + - x11/wireshark + - x11/ImageMagick + - x11/ghostscript + - x11/ooffice + - x11/oomath + - x11/oocalc + - x11/yast2_snapper + - x11/glxgears + - x11/nautilus + - x11/evolution + - x11/desktop_mainmenu + - x11/reboot_gnome + - shutdown/shutdown