hooray got test_pysvp64dis.py working with new Verbosity level
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 9 Sep 2022 18:23:52 +0000 (19:23 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 9 Sep 2022 18:23:52 +0000 (19:23 +0100)
src/openpower/sv/trans/test_pysvp64dis.py

index f25659d2e71c13717f20f1ba50140d18dc7bf3e4..61f833663e3894cdaf637bcfd2da68f46fe86946 100644 (file)
@@ -1,6 +1,7 @@
 from openpower.simulator.program import Program
 from openpower.sv.trans.pysvp64dis import load, dump
 from openpower.sv.trans.svp64 import SVP64Asm
+from openpower.decoder.power_insn import Verbosity
 import unittest
 import sys
 
@@ -39,7 +40,7 @@ class SVSTATETestCase(unittest.TestCase):
                 #print ("insn", insn)
             insns = list(insns)
             print ("insns", insns)
-            for i, line in enumerate(dump(insns, verbose=False, short=True)):
+            for i, line in enumerate(dump(insns, verbosity=Verbosity.SHORT)):
                 print("instruction", repr(line), repr(expected[i]))
                 self.assertEqual(expected[i], line,
                                  "instruction %i do not match "