mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
test: add command to 'Boot fail' message
When a timeout occurs while executing a command a 'Boot fail' message is written and testing is stopped. The user is left in the dark about the failure cause. ! _pytest.outcomes.Exit: Boot fail: Marking connection bad - no other tests will run ! Add the executed command to the message. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
9c7b3dd091
commit
bc2a1b3c92
1 changed files with 2 additions and 1 deletions
|
@ -346,7 +346,8 @@ class ConsoleBase(object):
|
|||
f"Lab failure: Timeout executing '{cmd}'", True)
|
||||
raise
|
||||
except BootFail as exc:
|
||||
handle_exception(self.config, self, self.log, exc, 'Boot fail',
|
||||
handle_exception(self.config, self, self.log, exc,
|
||||
f"'Boot fail '{cmd}'",
|
||||
True, self.get_spawn_output())
|
||||
raise
|
||||
finally:
|
||||
|
|
Loading…
Add table
Reference in a new issue