aboutsummaryrefslogtreecommitdiff
path: root/test/test-main.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-10-08 09:15:23 -0600
committerTom Rini <trini@konsulko.com>2021-10-14 19:45:07 -0400
commit35839eda8b17f85a94e8f83a681079ac2d30413f (patch)
treecd6a2e73e101a587242defcc591882f8d321be33 /test/test-main.c
parentc3aea6870595bfb41c8ea0108874e3ee3ee42407 (diff)
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>
Diffstat (limited to 'test/test-main.c')
0 files changed, 0 insertions, 0 deletions