test/runner: allow disabling VCD using SIM_NO_VCD=1 env var
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 30 Nov 2023 22:20:54 +0000 (14:20 -0800)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 1 Dec 2023 17:58:50 +0000 (17:58 +0000)
src/openpower/test/runner.py

index 3fc8aa43dc94ae2fc8578a761f25b1e6939b2d1b..40e1854099b4a9d6b6f0863b69bc0c2793277d55 100644 (file)
@@ -603,5 +603,8 @@ class TestRunnerBase(FHDLTestCase):
             sim.add_sync_process(wrap(wb_get(icache.ibus,
                                              self.default_mem, "ICACHE")))
 
-        with sim.write_vcd("%s.vcd" % gtkname):
+        if "SIM_NO_VCD" in os.environ:
             sim.run()
+        else:
+            with sim.write_vcd("%s.vcd" % gtkname):
+                sim.run()