From 4e537684b1f4aec649f0f63a79b75ae279891684 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 4 Jan 2019 13:01:36 -0800 Subject: [PATCH] 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 --- tests/_boot_to_anaconda.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/_boot_to_anaconda.pm b/tests/_boot_to_anaconda.pm index 49b4b301..8461df5d 100644 --- a/tests/_boot_to_anaconda.pm +++ b/tests/_boot_to_anaconda.pm @@ -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';