test-api: reverse cache stop
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:
parent
16227e90ed
commit
5f170b11b3
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user