Skip to content

Commit

Permalink
installation/reboot_eject_cd: Rewrite module
Browse files Browse the repository at this point in the history
The console handling didn't really make sense. Replace it with just two
calls to modern utils methods.
  • Loading branch information
Vogtinator committed Aug 13, 2024
1 parent b64f69d commit 76a1496
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions tests/installation/reboot_eject_cd.pm
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
# SUSE's openQA tests
#
# Copyright 2009-2013 Bernhard M. Wiedemann
# Copyright 2012-2018 SUSE LLC
# Copyright 2024 SUSE LLC
# SPDX-License-Identifier: FSFAP

# Summary: splited wait_encrypt_prompt being a single step; harmonized once wait_encrypt_prompt obsoleted
# Maintainer: Max Lin <mlin@suse.com>
# Summary: Reboot from the running system into the bootloader
# Maintainer: Fabian Vogt <fvogt@suse.com>

use base 'y2_installbase';
use base 'opensusebasetest';
use strict;
use warnings;
use testapi;
use utils;
use power_action_utils qw(power_action);
use utils qw(unlock_bootloader);

sub run {
# Eject the DVD
send_key "ctrl-alt-f3";
my $tty = get_root_console_tty;
assert_screen "tty$tty-selected";
send_key "ctrl-alt-delete";

# Bug in 13.1?
power('reset');

# eject_cd;

unlock_if_encrypted;
# While it makes sense to eject the CD here after install,
# this has always been commented out. No idea why.
# eject_cd
power_action 'reboot';
unlock_bootloader;
}

1;
Expand Down

0 comments on commit 76a1496

Please sign in to comment.