Work around #1663040 in Workstation live installs

We don't want the tests to fail on this now we know what the
bug is, really - we want to find if there are any subsequent
fails, and allow the post-install tests to run also. So, let's
make it a soft failure.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-01-04 13:01:36 -08:00
parent 141f29c7cc
commit 4e537684b1

View file

@ -49,6 +49,16 @@ sub run {
} else {
# on lives, we have to explicitly launch anaconda
if (get_var('LIVE')) {
if (get_var('DESKTOP') eq 'gnome') {
# workaround RHBZ #1663040 if necessary
$self->root_console(timeout=>30);
unless (script_run "systemctl --is-failed systemd-hostnamed.service") {
record_soft_failure "systemd-hostnamed.service failed - likely RHBZ #1663040";
assert_script_run "setenforce Permissive";
assert_script_run "systemctl restart systemd-hostnamed.service";
desktop_vt;
}
}
assert_and_click "live_start_anaconda_icon", '', 300;
}
my $language = get_var('LANGUAGE') || 'english';