Skip to content

Commit 8f3ed80

Browse files
committed
Showing test runner summary on test start
1 parent 726ccbd commit 8f3ed80

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

src/examples/tt_um_factory_test/tt_um_factory_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ def __init__(self):
128128

129129

130130

131-
dut = DUT()
132-
dut._log.info("enabled factory test project, running")
133131
runner = cocotb.get_runner()
132+
133+
dut = DUT()
134+
dut._log.info(f"enabled factory test project. Will test with {runner}")
135+
134136
runner.test(dut)

src/examples/tt_um_psychogenic_neptuneproportional/tt_um_psychogenic_neptuneproportional.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,11 @@ def __init__(self):
186186

187187
tt = DemoBoard.get()
188188
tt.shuttle.tt_um_psychogenic_neptuneproportional.enable()
189-
dut = DUT()
190-
dut._log.info("enabled neptune project")
189+
190+
191191
runner = cocotb.get_runner()
192+
dut = DUT()
193+
dut._log.info(f"enabled neptune project, will test with {runner}")
192194
runner.test(dut)
193195

194196

src/examples/tt_um_psychogenic_shaman/tb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,11 @@ def main():
610610
print("No tt_um_psychogenic_shaman in this shuttle?")
611611
return
612612
tt.shuttle.tt_um_psychogenic_shaman.enable()
613+
613614
dut = DUT()
614615
tt.uio_oe_pico.value = dut.oe_pico_setting
615616

616-
dut._log.info("enabled shaman project, running")
617617
runner = cocotb.get_runner()
618+
dut._log.info(f"enabled shaman project. Will test with\n{runner}")
618619
runner.test(dut)
619620

0 commit comments

Comments
 (0)