Skip to content

Commit

Permalink
test-api: reverse cache stop
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
  • Loading branch information
Kamil Gierszewski committed Sep 30, 2024
1 parent 2242d41 commit fa92881
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/functional/api/cas/casadm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit fa92881

Please sign in to comment.