From 5f170b11b3a1be19b7f1323d8aa5abdc439a5455 Mon Sep 17 00:00:00 2001 From: Kamil Gierszewski Date: Thu, 26 Sep 2024 15:18:47 +0200 Subject: [PATCH] test-api: reverse cache stop Signed-off-by: Kamil Gierszewski --- test/functional/api/cas/casadm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/api/cas/casadm.py b/test/functional/api/cas/casadm.py index 0988301..799147a 100644 --- a/test/functional/api/cas/casadm.py +++ b/test/functional/api/cas/casadm.py @@ -508,7 +508,8 @@ def stop_all_caches() -> None: caches = get_caches() if not caches: return - for cache in caches: + # Running "cache stop" on the reversed list to resolve the multilevel cache stop problem + for cache in reversed(caches): stop_cache(cache_id=cache.cache_id, no_data_flush=True)