mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
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 <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
86d462c05d
commit
9c7b3dd091
1 changed files with 2 additions and 2 deletions
|
@ -342,8 +342,8 @@ class ConsoleBase(object):
|
||||||
# indentation.
|
# indentation.
|
||||||
return self.p.before.strip('\r\n')
|
return self.p.before.strip('\r\n')
|
||||||
except Timeout as exc:
|
except Timeout as exc:
|
||||||
handle_exception(self.config, self, self.log, exc, 'Lab failure',
|
handle_exception(self.config, self, self.log, exc,
|
||||||
True)
|
f"Lab failure: Timeout executing '{cmd}'", True)
|
||||||
raise
|
raise
|
||||||
except BootFail as exc:
|
except BootFail as exc:
|
||||||
handle_exception(self.config, self, self.log, exc, 'Boot fail',
|
handle_exception(self.config, self, self.log, exc, 'Boot fail',
|
||||||
|
|
Loading…
Add table
Reference in a new issue