From e39ed373739682de9f7a1437471018b1a2aec2a7 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Sat, 4 Dec 2021 16:19:52 +0100 Subject: [PATCH] fixed wait_addr to exit immediately on exception --- src/soc/config/test/test_pi2ls.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/soc/config/test/test_pi2ls.py b/src/soc/config/test/test_pi2ls.py index 31b92363..4949bd05 100644 --- a/src/soc/config/test/test_pi2ls.py +++ b/src/soc/config/test/test_pi2ls.py @@ -24,8 +24,9 @@ def wait_addr(port,debug=None): cnt = 0 while True: addr_ok = yield port.addr_ok_o - print("addrok", addr_ok,cnt,debug) - if addr_ok: + exc_happened = yield port.exc_o.happened + print("addrok", addr_ok,cnt,debug,exc_happened) + if addr_ok or exc_happened: break yield cnt += 1 -- 2.30.2