Skip to content

Commit

Permalink
Introduce workarounds to upgrade leap 15.0 to TW
Browse files Browse the repository at this point in the history
Leap 15.0 installation is not detected as compatible when upgrading to
TW. Therefore we need to introduce soft-failure with workaround to make
it work.

See [poo#39713](https://progress.opensuse.org/issues/39713).
  • Loading branch information
Rodion Iafarov committed Aug 20, 2018
1 parent f750f80 commit f59d2eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/installation/upgrade_select.pm
Expand Up @@ -30,8 +30,17 @@ sub run {
send_key $cmd{ok};
}

my $update_list_needles = ['select-for-update'];
# Detect if empty list is shown due to bsc#1105335
push @$update_list_needles, 'empty-update-list' if check_var('ORIGINAL_VERSION', '15.0');
# hardware detection and waiting for updates from suse.com can take a while
assert_screen_with_soft_timeout('select-for-update', timeout => 500, soft_timeout => 100, bugref => 'bsc#1028774');
assert_screen_with_soft_timeout($update_list_needles, timeout => 500, soft_timeout => 100, bugref => 'bsc#1028774');
if (match_has_tag 'empty-update-list') {
record_soft_failure('bsc#1105335');
# Check show all partitions checkbox
send_key('alt-s');
assert_screen 'select-for-update';
}
send_key $cmd{next};
assert_screen [qw(remove-repository license-agreement license-agreement-accepted)], 240;
if (match_has_tag("license-agreement") || match_has_tag("license-agreement-accepted")) {
Expand Down Expand Up @@ -79,4 +88,5 @@ sub run {
}
}

sub post_fail_hook {}
1;
1 change: 1 addition & 0 deletions tests/installation/upgrade_select_opensuse.pm
Expand Up @@ -68,4 +68,5 @@ sub run {
assert_screen "update-installation-overview", 60;
}

sub post_fail_hook {}
1;

0 comments on commit f59d2eb

Please sign in to comment.