summaryrefslogtreecommitdiff
path: root/doc/develop
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2026-01-05 10:49:13 -0600
committerTom Rini <[email protected]>2026-01-12 15:12:41 -0600
commit637942ac8e093163742d7b74bf80836c3b950c4e (patch)
tree9d76539fce6e175ebfe52c89a0b4b6048a9775bd /doc/develop
parent2333d446b7b133ddfb9dea2d53996d560796ecd9 (diff)
test.py: check ubconfig exists before using it
Set ubconfig to None and add a check in the show_timings() function of test/py/test.py to ensure that the global ubconfig variable was actually initialized before access attributes. If tests fail early, e.g. because --build failed, ubconfig may not have been initialized yet and results in an exception in an atexit handler. Adding this check avoids unnecessary noise in the output. Exception ignored in atexit callback: <function cleanup at 0x7de475ea6b60> Traceback (most recent call last): File "u-boot/test/py/conftest.py", line 669, in cleanup show_timings() File "u-boot/test/py/conftest.py", line 616, in show_timings if ubconfig.timing: ^^^^^^^^ NameError: name 'ubconfig' is not defined Tested-by: Mattijs Korpershoek <[email protected]> # sandbox Reviewed-by: Mattijs Korpershoek <[email protected]> Signed-off-by: David Lechner <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions