buildroot/support/testing
Yann E. MORIN 005e5fc0eb 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>
(cherry picked from commit 44161560dd)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-01-01 19:34:40 +01:00
..
conf support/testing/tests/fs/test_iso9660.py: add support to test using EFI BIOS 2021-10-03 14:45:10 +02:00
infra support/tests: print failed command and output on assertRunOK error 2023-01-01 19:34:40 +01:00
tests support/testing/tests/fs/test_f2fs: fix test after f2fs-tools bump 2022-11-22 08:38:49 +01:00
run-tests support/testing/run-tests: fix --testcases option 2022-08-31 00:26:38 +02:00