Fix a logic bug in the 1699099 workaround which broke lots

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-04-13 07:56:57 -07:00
parent d33aa591a6
commit 2e68250bb1

View File

@ -84,7 +84,8 @@ sub run {
# Wait for install to end. Give Rawhide a bit longer, in case
# we're on a debug kernel, debug kernel installs are really slow.
my $timeout = 1800;
if (lc(get_var('VERSION')) eq "rawhide") {
my $version = lc(get_var('VERSION');
if ($version) eq "rawhide") {
$timeout = 2400;
}
# workstation especially has an unfortunate habit of kicking in
@ -130,15 +131,13 @@ sub run {
$self->root_console(timeout=>30);
enable_abrt_and_quit();
}
elsif (get_var("VERSION") eq "30" || get_var("VERSION") eq "Rawhide") {
if (get_var("DESKTOP") eq "gnome") {
# FIXME workaround for
# https://bugzilla.redhat.com/show_bug.cgi?id=1699099
# remove when fixed
$self->root_console(timeout=>30);
assert_script_run 'sed -i -e "s,SELINUX=enforcing,SELINUX=permissive,g" /mnt/sysimage/etc/selinux/config';
type_string "reboot\n" unless (get_var("LIVE"));
}
elsif ((get_var("DESKTOP") eq "gnome") && ($version eq "30" || $version eq "rawhide")) {
# FIXME workaround for
# https://bugzilla.redhat.com/show_bug.cgi?id=1699099
# remove when fixed
$self->root_console(timeout=>30);
assert_script_run 'sed -i -e "s,SELINUX=enforcing,SELINUX=permissive,g" /mnt/sysimage/etc/selinux/config';
type_string "reboot\n" unless (get_var("LIVE"));
}
else {
assert_and_click "anaconda_install_done";