Allow lm_sensors service to fail on aarch64

This is another known "fails due to no hardware" case:
https://bugzilla.redhat.com/show_bug.cgi?id=1894654
those are explicitly excluded from the release criterion, so a
soft failure is appropriate.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-12-04 14:46:54 -08:00
parent d065974cc6
commit dd9b9a8c5f

View File

@ -23,10 +23,21 @@ sub run {
die "More than one services failed to start";
}
else {
my $arch = get_var("ARCH");
if ($arch eq "ppc64le") {
# fail if it's something other than hcn-init
assert_script_run "systemctl is-failed hcn-init.service";
record_soft_failure "hcn-init failed - https://bugzilla.redhat.com/show_bug.cgi?id=1894654";
}
elsif ($arch eq "aarch64") {
# fail if it's something other than lm_sensors
assert_script_run "systemctl is-failed lm_sensors.service";
record_soft_failure "lm_sensors failed - https://bugzilla.redhat.com/show_bug.cgi?id=1899896";
}
else {
die "Unexpected service start failure";
}
}
}