diff options
| author | Heinrich Schuchardt <[email protected]> | 2024-11-23 22:29:21 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-11-29 14:41:47 -0600 |
| commit | 9c7b3dd091a20ca081cc9e46c92d5c36dbd8d7a8 (patch) | |
| tree | 95f2d46827721099e6d0854a9edc2f30788ae98d /test | |
| parent | 86d462c05d57f0bb4df582453d0d0b2d7cabc6ff (diff) | |
test: add command to 'Lab failure' timeout message
When a timeout occurs while executing a command a 'Lab failure' message is
written and testing is stopped. The user is left in the dark about the
failure cause.
! _pytest.outcomes.Exit: Lab failure: Marking connection bad - no other tests will run !
Add the word 'Timeout' and the executed command to the message.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'test')
| -rw-r--r-- | test/py/u_boot_console_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index fa9cd57b04b..070ad28ecc9 100644 --- a/test/py/u_boot_console_base.py +++ b/test/py/u_boot_console_base.py @@ -342,8 +342,8 @@ class ConsoleBase(object): # indentation. return self.p.before.strip('\r\n') except Timeout as exc: - handle_exception(self.config, self, self.log, exc, 'Lab failure', - True) + handle_exception(self.config, self, self.log, exc, + f"Lab failure: Timeout executing '{cmd}'", True) raise except BootFail as exc: handle_exception(self.config, self, self.log, exc, 'Boot fail', |
