test/py: Correct handling of exceptions mainline origin/mainline
authorSimon Glass <sjg@chromium.org>
Thu, 29 May 2025 14:14:52 +0000 (08:14 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 12 Jun 2025 17:32:29 +0000 (11:32 -0600)
commit2ab10ed2399b0c1c790733884935c94ad65aa2a8
tree1ca6b965ddf0b3f10a20dfb8d848fe29ee988adf
parentef82e45c2ef5278493576708d6aafd686ba77af9
test/py: Correct handling of exceptions

If an Unexpected exception is thrown in a test, an undefined variable
error is reported. Fix this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 85d7dae377a ("test: Detect dead connections")
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
test/py/conftest.py