All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] test/py: Use the correct fixture name in exception handler
@ 2025-05-29 14:14 Simon Glass
  2025-05-29 14:14 ` [PATCH 2/2] test/py: Correct handling of exceptions Simon Glass
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Simon Glass @ 2025-05-29 14:14 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Simon Glass, Heinrich Schuchardt, Jerome Forissier,
	Mattijs Korpershoek, Stephen Warren, Stephen Warren, Tom Rini

If a BootFail exception is thrown in a test, it is not handled
correctly. Use the correct fixture variable 'ubman_fix' to resolve this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: d9ed4b75add ("test/py: Drop u_boot_ prefix on test files")
---

 test/py/conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/py/conftest.py b/test/py/conftest.py
index 6c3ac67979a..eec0b5488e4 100644
--- a/test/py/conftest.py
+++ b/test/py/conftest.py
@@ -514,7 +514,7 @@ def ubman(request):
         handle_exception(ubconfig, ubman_fix, log, err, 'Lab timeout', True)
     except BootFail as err:
         handle_exception(ubconfig, ubman_fix, log, err, 'Boot fail', True,
-                         ubman.get_spawn_output())
+                         ubman_fix.get_spawn_output())
     except Unexpected:
         handle_exception(ubconfig, ubman_fix, log, err, 'Unexpected test output',
                          False)
-- 
2.43.0

base-commit: 2f3766949bbea7aa5a472157561d387fd94205d2
branch: py-fix

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-12 19:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 14:14 [PATCH 1/2] test/py: Use the correct fixture name in exception handler Simon Glass
2025-05-29 14:14 ` [PATCH 2/2] test/py: Correct handling of exceptions Simon Glass
2025-05-30  7:10   ` Mattijs Korpershoek
2025-05-30  7:09 ` [PATCH 1/2] test/py: Use the correct fixture name in exception handler Mattijs Korpershoek
2025-06-12 19:17 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.