From: Heinrich Schuchardt Date: Sat, 23 Nov 2024 21:29:22 +0000 (+0100) Subject: test: add command to 'Boot fail' message X-Git-Tag: v2025.04-rc1~17^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc2a1b3c92825632b239f7021ff4ddfe84587df2;p=pandora-u-boot.git 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 --- diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index 070ad28ecc9..7eaceb39d9d 100644 --- a/test/py/u_boot_console_base.py +++ b/test/py/u_boot_console_base.py @@ -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: