From 2f188f976669b82e77b5e5ceb6def85eaf53ae32 Mon Sep 17 00:00:00 2001 From: Kamil Gierszewski Date: Tue, 1 Oct 2024 17:08:42 +0200 Subject: [PATCH] tests: add dirty data check to acp test Signed-off-by: Kamil Gierszewski --- test/functional/tests/lazy_writes/cleaning_policy/test_acp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/functional/tests/lazy_writes/cleaning_policy/test_acp.py b/test/functional/tests/lazy_writes/cleaning_policy/test_acp.py index 351499d..63478c2 100644 --- a/test/functional/tests/lazy_writes/cleaning_policy/test_acp.py +++ b/test/functional/tests/lazy_writes/cleaning_policy/test_acp.py @@ -1,5 +1,6 @@ # # Copyright(c) 2020-2022 Intel Corporation +# Copyright(c) 2024 Huawei Technologies Co., Ltd. # SPDX-License-Identifier: BSD-3-Clause # @@ -233,6 +234,9 @@ def test_acp_param_flush_max_buffers(cache_line_size, cache_mode): fio = get_fio_cmd(core, core_size) fio.run_in_background() time.sleep(10) + cache_stats = cache.get_statistics() + if cache_stats.usage_stats.dirty == Size.zero(): + TestRun.fail("There are no dirty data on cache") with TestRun.step("Set cleaning policy to ACP."): cache.set_cleaning_policy(CleaningPolicy.acp)