u-boot/test/py
Simon Glass 35839eda8b pytest: Show a message when sandbox crashes
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@chromium.org>
2021-10-14 19:45:07 -04:00
..
tests - Disable ATAGS for STM32 MCU and MPU boards 2021-10-12 12:01:00 -04:00
.gitignore
conftest.py test/py: improve regular expression for ut subtest symbol matcher 2021-05-24 14:21:30 -04:00
multiplexed_log.css
multiplexed_log.py
pytest.ini
requirements.txt tests: patman: Add requests to the module list 2021-04-29 03:23:39 -07:00
test.py pytest: Shorten traceback length by default 2021-10-14 19:45:07 -04:00
u_boot_console_base.py serial: Rename SERIAL_SUPPORT to SERIAL 2021-09-04 12:26:01 -04:00
u_boot_console_exec_attach.py
u_boot_console_sandbox.py
u_boot_spawn.py pytest: Show a message when sandbox crashes 2021-10-14 19:45:07 -04:00
u_boot_utils.py test/py: Wait for guestmount worker to exit after running guestunmount 2021-07-05 15:28:32 -04:00