]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: Separate out the exception handling
authorSimon Glass <sjg@chromium.org>
Thu, 10 Oct 2024 00:29:02 +0000 (18:29 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 15 Oct 2024 16:24:27 +0000 (10:24 -0600)
commit681b8f86e4719ba4d8d0bd4f8b6be056277499f6
tree5801cb9941e9774c9b693b5580f16f340a1c5444
parente4ad90149cee8e98d4a881ef535f50ef2cffa168
test: Separate out the exception handling

The tests currently catch a very broad Exception in each case. This is
thrown even in the event of a coding error.

We want to handle exceptions differently depending on their severity,
so that we can avoid hour-long delays waiting for a board that is
clearly broken.

As a first step, create some new exception types, separating out those
which are simply an unexpected result from executed a command, from
those which indicate some kind of hardware failure.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/py/u_boot_console_base.py
test/py/u_boot_spawn.py