From f7da8426f53b7b220fe122b562140151d53abc8c Mon Sep 17 00:00:00 2001 From: Jan Michalski Date: Mon, 8 Jun 2026 19:32:59 +0000 Subject: [PATCH] SRE-3827 test: assuming fault injection is enabled by default If the fault_status executable is not available 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/tests/ftest/util/launch_utils.py b/src/tests/ftest/util/launch_utils.py index cd8bf8eeed2..e7f875fdc3c 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,13 @@ 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 run_local(logger, "which fault_status").passed: + logger.debug(" fault_status is available") + else: + logger.debug(" fault_status is not available") + logger.debug("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")