Skip to content

Commit

Permalink
Check if aarch64 test missed grub
Browse files Browse the repository at this point in the history
Allows us to continue the test suite if openqa missed the tiano screen
  • Loading branch information
DrMullings committed May 22, 2019
1 parent 7539a77 commit 17bcb49
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions tests/installation/grub_test.pm
Expand Up @@ -69,19 +69,30 @@ sub run {
# 60 due to rare slowness e.g. multipath poo#11908
# 90 as a workaround due to the qemu backend fallout
# If grub timeout was not disabled, we wait for linux-login instead
my $tag = get_var('KEEP_GRUB_TIMEOUT') ? 'linux-login' : 'grub2';
assert_screen_with_soft_timeout($tag, timeout => 2 * $timeout, soft_timeout => $timeout, bugref => 'boo#1120256');
stop_grub_timeout;
boot_into_snapshot if get_var("BOOT_TO_SNAPSHOT");
send_key_until_needlematch("bootmenu-xen-kernel", 'down', 10, 5) if get_var('XEN');
if ((check_var('ARCH', 'aarch64') && is_sle && get_var('PLYMOUTH_DEBUG'))
|| get_var('GRUB_KERNEL_OPTION_APPEND'))

check_screen ['grub2', 'displaymanager', 'linux-login'], 120;

if (match_has_tag('displaymanager') or match_has_tag('linux-login')) {
record_soft_failure("poo#49751 - Grub2 not found, because system has already booted");
}
elsif (match_has_tag 'grub2')
{
$self->bug_workaround_bsc1005313 unless get_var("BOOT_TO_SNAPSHOT");
stop_grub_timeout;
boot_into_snapshot if get_var("BOOT_TO_SNAPSHOT");
send_key_until_needlematch("bootmenu-xen-kernel", 'down', 10, 5) if get_var('XEN');
if ((check_var('ARCH', 'aarch64') && is_sle && get_var('PLYMOUTH_DEBUG'))
|| get_var('GRUB_KERNEL_OPTION_APPEND'))
{
$self->bug_workaround_bsc1005313 unless get_var("BOOT_TO_SNAPSHOT");
}
else {
# avoid timeout for booting to HDD
send_key 'ret';
}
}
else {
# avoid timeout for booting to HDD
send_key 'ret';
else
{
die 'Neither grub, nor system found';
}
}

Expand Down

0 comments on commit 17bcb49

Please sign in to comment.