debug and stop on mmu test_pipe_caller.py
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 30 Apr 2021 15:25:20 +0000 (16:25 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 30 Apr 2021 15:25:20 +0000 (16:25 +0100)
src/soc/fu/mmu/test/test_pipe_caller.py

index 175347b7a57f7dc9c07f5932800d3d2aeea2f5ae..a8fcfac5b8fcd7cc65b0e504b5e6fe1552fe9137 100644 (file)
@@ -192,7 +192,9 @@ class TestRunner(unittest.TestCase):
             vld = yield fsm.n.valid_o #fsm
             while not vld:
                 yield
-                if debughang:  print("not valid -- hang")
+                if debughang:
+                    print("not valid -- hang")
+                    return
                 vld = yield fsm.n.valid_o
                 if debughang==2: vld=1
             yield