2016-12-08 16:58:29 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
2017-01-18 07:15:44 +00:00
|
|
|
use utils;
|
2016-12-08 16:58:29 +00:00
|
|
|
use testapi;
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
|
|
|
$self->root_console(tty=>3);
|
2016-12-08 20:18:45 +00:00
|
|
|
# if this is a non-English, non-switched layout, load US layout
|
|
|
|
# at this point
|
|
|
|
# FIXME: this is all kind of a mess, as on such configs we need
|
|
|
|
# native layout to log in to a console but US layout to type
|
|
|
|
# anything at a console. the more advanced upstream 'console'
|
|
|
|
# handling may help us here if we switch to it
|
|
|
|
console_loadkeys_us;
|
2016-12-08 16:58:29 +00:00
|
|
|
# check there are no AVCs. We use ! because this returns 1
|
|
|
|
validate_script_output '! ausearch -m avc -ts yesterday 2>&1', sub { $_ =~ m/<no matches>/ };
|
|
|
|
# check there are no crashes
|
|
|
|
validate_script_output '! coredumpctl list 2>&1', sub { $_ =~ m/No coredumps found/ };
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2017-04-10 22:00:10 +00:00
|
|
|
return { 'ignore_failure' => 1 };
|
2016-12-08 16:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|