Skip to content

Commit

Permalink
test: disable pmem2_badblock tests due to #5636
Browse files Browse the repository at this point in the history
Temporary solution until a platform supporting
the tested functionality is ready
  • Loading branch information
osalyk committed May 17, 2023
1 parent 1719502 commit b41c2a1
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions 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
Expand Down Expand Up @@ -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
"""
Expand All @@ -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
"""
Expand All @@ -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"

Expand All @@ -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"

Expand All @@ -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"

Expand All @@ -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"

Expand Down

0 comments on commit b41c2a1

Please sign in to comment.