[PATCH v2] pytest: Show a message when sandbox crashes

Tom Rini trini at konsulko.com
Fri Oct 15 13:52:39 CEST 2021


On Fri, Oct 08, 2021 at 09:15:23AM -0600, Simon Glass wrote:

> When a test hands on a real board there is no way on the console to obtain
> any information about why it hung.
> 
> With sandbox we can actually find out that it died and get a signal or
> exit code. Add this to make it easier to figure out what happened.
> 
> So instead of:
> 
> test/py/u_boot_spawn.py:171: in expect
>     c = os.read(self.fd, 1024).decode(errors='replace')
> E   OSError: [Errno 5] Input/output error
> 
> We get:
> 
> test/py/u_boot_spawn.py:171: in expect
>     c = os.read(self.fd, 1024).decode(errors='replace')
> E   ValueError: U-Boot exited with signal 11 (Signals.SIGSEGV)
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20211015/4b1aef77/attachment.sig>


More information about the U-Boot mailing list