From 52c978f931f610c7d97d2db38152a58671bda124 Mon Sep 17 00:00:00 2001 From: "Rutkowski, Adam J" Date: Wed, 21 Sep 2022 17:01:33 +0200 Subject: [PATCH] Fix dd flags in test_lazy_writes_clean tests Change dd flag specification so that "direct" is specified for the tested device (CAS exp object or core), regardless of I/O direction (read vs write). Signed-off-by: Rutkowski, Adam J --- .../tests/lazy_writes/test_lazy_writes_clean.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/functional/tests/lazy_writes/test_lazy_writes_clean.py b/test/functional/tests/lazy_writes/test_lazy_writes_clean.py index e238fe8..b67263b 100644 --- a/test/functional/tests/lazy_writes/test_lazy_writes_clean.py +++ b/test/functional/tests/lazy_writes/test_lazy_writes_clean.py @@ -1,5 +1,5 @@ # -# Copyright(c) 2020-2021 Intel Corporation +# Copyright(c) 2020-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -88,7 +88,7 @@ def test_clean_stop_cache(cache_mode): .input(core.path) \ .block_size(bs) \ .count(int(test_file_main.size / bs)) \ - .oflag("direct") + .iflag("direct") dd.run() test_file_1.refresh_item() sync() @@ -103,7 +103,7 @@ def test_clean_stop_cache(cache_mode): .input(core_part.path) \ .block_size(bs) \ .count(int(test_file_main.size / bs)) \ - .oflag("direct") + .iflag("direct") dd.run() test_file_2.refresh_item() sync() @@ -136,7 +136,7 @@ def test_clean_stop_cache(cache_mode): .input(core_part.path) \ .block_size(bs) \ .count(int(test_file_main.size / bs)) \ - .oflag("direct") + .iflag("direct") dd.run() test_file_3.refresh_item() sync() @@ -219,7 +219,7 @@ def test_clean_remove_core_with_fs(cache_mode, fs): .input(test_file_1.full_path) \ .block_size(bs) \ .count(int(test_file_1.size / bs)) \ - .oflag("direct") + .iflag("direct") dd.run() test_file_2.refresh_item() sync() @@ -305,7 +305,7 @@ def test_clean_remove_core_without_fs(cache_mode): .input(core.path) \ .block_size(bs) \ .count(int(test_file_main.size / bs)) \ - .oflag("direct") + .iflag("direct") dd.run() test_file_1.refresh_item() sync() @@ -320,7 +320,7 @@ def test_clean_remove_core_without_fs(cache_mode): .input(core_part.path) \ .block_size(bs) \ .count(int(test_file_main.size / bs)) \ - .oflag("direct") + .iflag("direct") dd.run() test_file_2.refresh_item() sync() @@ -353,7 +353,7 @@ def test_clean_remove_core_without_fs(cache_mode): .input(core_part.path) \ .block_size(bs) \ .count(int(test_file_main.size / bs)) \ - .oflag("direct") + .iflag("direct") dd.run() test_file_3.refresh_item() sync()