Skip to content

Commit

Permalink
test: fix cstyle issue
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed May 19, 2023
1 parent a9c535f commit f1ffe19
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/test/pmem2_mem_ext/TESTS.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ def setup(self, ctx):
ret = tools.Tools(ctx.env, ctx.build).cpufd()
self.check_arch(ctx.variant(), ret.returncode)

# All tests with variant VARIANT_AVX512F are disabled under Valgrind
# until the issue https://github.com/pmem/pmdk/issues/5640 is fixed.
if not sys.platform.startswith('win32'):
if ctx.valgrind is not None:
if ctx.valgrind.tool.name != "NONE":
if ctx.variant() == VARIANT_AVX512F:
raise futils.Skip("AVX512F unavailable under Valigrind")
# XXX all tests with VARIANT_AVX512F are disabled under Valgrind
# until the issue https://github.com/pmem/pmdk/issues/5640 is fixed.
# "win32" `if`` is related to unknown `is not None` by Windows Python
if not sys.platform.startswith('win32') and ctx.valgrind is not None:
if ctx.valgrind.tool.name != "NONE":
if ctx.variant() == VARIANT_AVX512F:
raise futils.Skip("AVX512F unavailable under Valigrind")

def check_arch(self, variant, available_arch):
if variant == VARIANT_MOVDIR64B:
Expand Down

0 comments on commit f1ffe19

Please sign in to comment.