kumquat-buildroot/support/testing/infra
Yann E. MORIN 44161560dd support/tests: print failed command and output on assertRunOK error
Currently, when asserting that a command succeeded, we just capture the
return code of the command. If that is not zero, the assertion fails,
but the error message is not very splicit:
    AssertionError: 1 != 0

Replace the error message with an explicit message that dumps the failed
command, the error code, and the resulting output.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-12-27 21:40:31 +01:00
..
__init__.py support/testing/infra: add log_file_path() function 2021-08-29 11:37:15 +02:00
basetest.py support/tests: print failed command and output on assertRunOK error 2022-12-27 21:40:31 +01:00
builder.py
emulator.py support/testing/infra/emulator.py: prevent the commands from wrapping 2021-10-06 21:54:20 +02:00