From: Tobias Platen Date: Sat, 4 Dec 2021 15:19:52 +0000 (+0100) Subject: fixed wait_addr to exit immediately on exception X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e39ed373739682de9f7a1437471018b1a2aec2a7;p=soc.git fixed wait_addr to exit immediately on exception --- 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