Fix base_reboot_unmount on graphical installs

On graphical flavors we are not at a console when this test runs.
We need to do root_console to get there, and also bypass_1691487
for ppc64le. Copied from base_selinux.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-01-24 11:51:18 +01:00
parent 8b28625ea2
commit 9d985d8ebd
1 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,6 @@ use utils;
sub test_routine {
my $self = shift;
# Save the result of the error tracking grep operation on journalctl output.
script_run 'journalctl -b | grep -E "dirty bit|data may be corrupt|recovery|unmounted|recovering" > errors.txt';
# Count the number of errors.
@ -18,9 +17,9 @@ sub test_routine {
}
sub run {
# Seems that the first login is handled by the _console_wait_login(), so
# we can start with testing right away.
bypass_1691487 unless (get_var("DESKTOP"));
# switch to TTY3 for both graphical and console tests
$self->root_console(tty=>3);
# Run test for the first time
test_routine();
# Reboot the system.