pyocf: Disarm error volumes in teardown

This prevents obfuscating the actual test errors

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Michal Mielewczyk 2024-10-02 10:40:53 +02:00
parent 575b1abc50
commit 818dacfe89

View File

@ -1,5 +1,6 @@
#
# Copyright(c) 2019-2022 Intel Corporation
# Copyright(c) 2024 Huawei Technologies
# SPDX-License-Identifier: BSD-3-Clause
#
@ -113,6 +114,10 @@ class OcfCtx:
def stop_caches(self):
for cache in self.caches[:]:
try:
cache.get_volume().disarm()
except AttributeError:
pass
cache.stop()
def exit(self):