workaround mcelog failing

Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D843
This commit is contained in:
Jan Sedlák 2016-06-01 08:12:16 +02:00
parent cf543adf72
commit 05f33bbd39
1 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,12 @@ sub run {
}
# switch to TTY3 for both, graphical and console tests
$self->root_console(tty=>3);
validate_script_output 'systemctl --failed', sub { $_ =~ m/0 loaded units/ };
my $output = script_output 'systemctl --failed';
if ($output =~ /1 loaded units/ && $output =~ /mcelog.service/) {
record_soft_failure;
} elsif (! $output =~ /0 loaded units/) {
die "Services other than mcelog failed to load";
}
}