mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-27 04:33:09 +00:00
7c78f9a710
This just doesn't work when running the test on a graphical install because we're at a desktop when we try and do it, not a text console. So let's only try to do it if there is no DESKTOP. See e.g.: https://openqa.fedoraproject.org/tests/408484#step/base_selinux/2 Signed-off-by: Adam Williamson <awilliam@redhat.com>
22 lines
377 B
Perl
22 lines
377 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self=shift;
|
|
bypass_1691487 unless (get_var("DESKTOP"));
|
|
# switch to TTY3 for both, graphical and console tests
|
|
$self->root_console(tty=>3);
|
|
validate_script_output 'getenforce', sub { $_ =~ m/Enforcing/ };
|
|
}
|
|
|
|
|
|
sub test_flags {
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|