add dummy call to simrun and end_test()
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Sep 2021 13:02:15 +0000 (14:02 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Sep 2021 13:02:15 +0000 (14:02 +0100)
src/soc/simple/test/test_runner.py

index 31c6b7b400ed6f5f3f5fdc35cb62c7deb124dc16..c8c3e827d30d9a9320f1495de0a7d3ff5abfb238 100644 (file)
@@ -460,6 +460,9 @@ class TestRunner(FHDLTestCase):
                 ###### END OF A TEST #######
                 # StateRunner.end_test()
 
+                if self.run_sim:
+                    simrun.end_test() # TODO, some arguments?
+
                 if self.run_hdl:
                     # stop at end
                     yield from set_dmi(hdlrun.dmi, DBGCore.CTRL, 1<<DBGCtrl.STOP)
@@ -495,6 +498,10 @@ class TestRunner(FHDLTestCase):
         ###### END OF EVERYTHING (but none needs doing, still call fn) #######
         # StateRunner.cleanup()
 
+        if self.run_sim:
+            simrun.cleanup() # TODO, some arguments?
+
+
         styles = {
             'dec': {'base': 'dec'},
             'bin': {'base': 'bin'},