From dd9b9a8c5faf214858e2887eadd1b738dc22d960 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 4 Dec 2020 14:46:54 -0800 Subject: [PATCH] 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 --- tests/base_services_start.pm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/base_services_start.pm b/tests/base_services_start.pm index d17772fa..be192b58 100644 --- a/tests/base_services_start.pm +++ b/tests/base_services_start.pm @@ -23,9 +23,20 @@ sub run { die "More than one services failed to start"; } else { - # 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"; + 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"; + } } }