add subTest back in to bcd tst
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 15 Aug 2021 22:07:28 +0000 (23:07 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 15 Aug 2021 22:07:28 +0000 (23:07 +0100)
src/openpower/decoder/isa/test_caller_bcd.py

index 006b721450248475ada507d409049680ae14fc8f..f69a50983117c74c49072243c13d3ad5360dd145 100644 (file)
@@ -281,12 +281,13 @@ class BCDTestCase(FHDLTestCase):
     def run_tst(self, instr, mapping):
         lst = [f"{instr} {reg}, {reg}" for reg in range(32)]
         for (iregs, oregs) in testgen(mapping):
-            with Program(lst, bigendian=False) as program:
-                sim = self.run_tst_program(program, iregs)
-                gprs = [sim.gpr(gpr) for gpr in range(32)]
-                for gpr in range(32):
-                    self.assertEqual(sim.gpr(gpr),
-                                     SelectableInt(oregs[gpr], 64))
+            with self.subTest():
+                with Program(lst, bigendian=False) as program:
+                    sim = self.run_tst_program(program, iregs)
+                    gprs = [sim.gpr(gpr) for gpr in range(32)]
+                    for gpr in range(32):
+                        self.assertEqual(sim.gpr(gpr),
+                                         SelectableInt(oregs[gpr], 64))
 
     @unittest.skip("")
     def test_cdtbcd(self):