From d8b573a98fb0014d5705706770e9997fafe8ff61 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 25 Aug 2022 22:35:26 -0700 Subject: [PATCH] log rather than print SKIPPED --- src/openpower/test/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openpower/test/common.py b/src/openpower/test/common.py index 4ba6ccdf..538609d3 100644 --- a/src/openpower/test/common.py +++ b/src/openpower/test/common.py @@ -10,7 +10,8 @@ import types import os from openpower.decoder.power_enums import XER_bits, CryIn, spr_dict -from openpower.util import fast_reg_to_spr, slow_reg_to_spr # HACK! +from openpower.util import LogKind, log, \ + fast_reg_to_spr, slow_reg_to_spr # HACK! from openpower.consts import XERRegsEnum @@ -102,7 +103,7 @@ class TestAccumulatorBase: # TODO(programmerjake): translate to final test sending # skip signal to unittest. for now, just print the skipped # reason and ignore - print(f"SKIPPED({n}):", str(e)) + log(f"SKIPPED({n}):", str(e), kind=LogKind.SkipCase) @contextmanager def subTest(self, **kwargs): -- 2.30.2