From 27150b59cfa2f46ab5b981abebc69ba4d2b09c1d Mon Sep 17 00:00:00 2001 From: Dalton Bohning Date: Thu, 10 Sep 2026 16:05:48 +0000 Subject: [PATCH] DAOS-19622 test: fix FaultInjection.stop() Fix FaultInjection.stop() to unset the env and local reference after the file is removed. Test-tag: Snapshot BasicTxTest EcodFaultInjection PoolServicesFaultInjection TestScrubberEvictWithAggregation TestWithScrubberFault TestScrubberEvictWithRebuild TestScrubberEvictWithSnapshot TestWithScrubberTargetEviction Quick-functional: true Signed-off-by: Dalton Bohning --- src/tests/ftest/util/fault_config_utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tests/ftest/util/fault_config_utils.py b/src/tests/ftest/util/fault_config_utils.py index 5dd3071271f..b2d752ad1c2 100644 --- a/src/tests/ftest/util/fault_config_utils.py +++ b/src/tests/ftest/util/fault_config_utils.py @@ -1,5 +1,6 @@ """ (C) Copyright 2019-2024 Intel Corporation. + (C) Copyright 2026 Hewlett Packard Enterprise Development LP SPDX-License-Identifier: BSD-2-Clause-Patent """ @@ -331,4 +332,9 @@ def stop(self): result = run_local(log, command) if not result.passed: error_list.append(f"Error removing fault injection file {self.fault_file}") + + # Unset the local and environment reference since the file is gone + self.fault_file = None + del os.environ["D_FI_CONFIG"] + return error_list