From b41c2a1e2c1b2e58a02345f469591245777caf47 Mon Sep 17 00:00:00 2001 From: Oksana Salyk Date: Tue, 16 May 2023 13:55:26 +0200 Subject: [PATCH] test: disable pmem2_badblock tests due to #5636 Temporary solution until a platform supporting the tested functionality is ready --- src/test/pmem2_badblock/TESTS.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/test/pmem2_badblock/TESTS.py b/src/test/pmem2_badblock/TESTS.py index d42f70aac08..5b57c1c475e 100755 --- a/src/test/pmem2_badblock/TESTS.py +++ b/src/test/pmem2_badblock/TESTS.py @@ -1,6 +1,6 @@ #!../env.py # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2021, Intel Corporation +# Copyright 2021-2023, Intel Corporation # import os @@ -69,7 +69,8 @@ def run_test(self, ctx, filepath): bbTool.clear_all(filepath) -class TEST0(PMEM2_BADBLOCK_COUNT): +# XXX - https://github.com/pmem/pmdk/issues/5636 +class DISABLE_TEST0(PMEM2_BADBLOCK_COUNT): """ compares the number of bad blocks returned by pmem2 and ndctl on fsdax """ @@ -80,8 +81,9 @@ def run(self, ctx): self.run_test(ctx, filepath) +# XXX - https://github.com/pmem/pmdk/issues/5636 @t.require_devdax(t.DevDax('devdax1')) -class TEST1(PMEM2_BADBLOCK_COUNT): +class DISABLE_TEST1(PMEM2_BADBLOCK_COUNT): """ compares the number of bad blocks returned by pmem2 and ndctl on devdax """ @@ -92,7 +94,8 @@ def run(self, ctx): self.run_test(ctx, ddpath) -class TEST2(PMEM2_BADBLOCK): +# XXX - https://github.com/pmem/pmdk/issues/5636 +class DISABLE_TEST2(PMEM2_BADBLOCK): """test mcsafe read operation with encountered badblock""" test_case = "test_pmem2_src_mcsafe_badblock_read" @@ -101,7 +104,8 @@ def run(self, ctx): self.run_test(ctx, filepath) -class TEST3(PMEM2_BADBLOCK): +# XXX - https://github.com/pmem/pmdk/issues/5636 +class DISABLE_TEST3(PMEM2_BADBLOCK): """test mcsafe write operation with encountered badblock""" test_case = "test_pmem2_src_mcsafe_badblock_write" @@ -110,8 +114,9 @@ def run(self, ctx): self.run_test(ctx, filepath) +# XXX - https://github.com/pmem/pmdk/issues/5636 @t.require_devdax(t.DevDax('devdax1')) -class TEST4(PMEM2_BADBLOCK): +class DISABLE_TEST4(PMEM2_BADBLOCK): """test mcsafe read operation with encountered badblock on devdax""" test_case = "test_pmem2_src_mcsafe_badblock_read" @@ -120,8 +125,9 @@ def run(self, ctx): self.run_test(ctx, ddpath) +# XXX - https://github.com/pmem/pmdk/issues/5636 @t.require_devdax(t.DevDax('devdax1')) -class TEST5(PMEM2_BADBLOCK): +class DISABLE_TEST5(PMEM2_BADBLOCK): """test mcsafe write operation with encountered badblock on devdax""" test_case = "test_pmem2_src_mcsafe_badblock_write"