From 74285c53de4bd92b0b67d79b8ae59336ce8b14c3 Mon Sep 17 00:00:00 2001 From: Jan Michalski Date: Tue, 16 Jun 2026 15:55:17 +0100 Subject: [PATCH] SRE-3827 test: assume fault injection is enabled by default (#18465) If the fault_status executable is not available (e.g. on a light agent where DAOS is not installed) we cannot rule out there are tests to run. It does not change the behaviour when fault_status is available so no more tests will get run but less stages will get skipped without good reason when the test scope is restricted allowing to run a single fault injection test if necessary. Fault injection test below picked arbitrarily. Test-tag: test_daos_pipeline Skip-unit-tests:true Skip-NLT: true Skip-unit-test-memcheck: true Skip-func-vm: true Skip-fault-injection-test: true Skip-test-rpms: true Signed-off-by: Jan Michalski --- src/tests/ftest/util/launch_utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tests/ftest/util/launch_utils.py b/src/tests/ftest/util/launch_utils.py index cd8bf8eeed2..1ac24a4d165 100644 --- a/src/tests/ftest/util/launch_utils.py +++ b/src/tests/ftest/util/launch_utils.py @@ -1,6 +1,6 @@ """ (C) Copyright 2022-2024 Intel Corporation. - (C) Copyright 2025 Hewlett Packard Enterprise Development LP + (C) Copyright 2025-2026 Hewlett Packard Enterprise Development LP SPDX-License-Identifier: BSD-2-Clause-Patent """ @@ -45,6 +45,10 @@ def fault_injection_enabled(logger): bool: whether or not fault injection is enabled """ logger.debug("-" * 80) + logger.debug("Checking if 'fault_status' utility is available:") + if not run_local(logger, "which fault_status").passed: + logger.debug(" Missing 'fault_status' command; assuming fault injection is enabled") + return True logger.debug("Checking for fault injection enablement via 'fault_status':") if run_local(logger, "fault_status").passed: logger.debug(" Fault injection is enabled")