]> git.sur5r.net Git - u-boot/commit
test/py: Provide output from exceptions with RunAndLog()
authorSimon Glass <sjg@chromium.org>
Sun, 3 Jul 2016 15:40:38 +0000 (09:40 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jul 2016 22:22:34 +0000 (18:22 -0400)
commit86845bf38dbba5fa7499db10ac5ee20f72d3f240
treee66c110c815cdc09a948fa5156a653d5da3d8a58
parent3b8d9d977b6dd6d04f0cfe2eb5dce25264fe40f5
test/py: Provide output from exceptions with RunAndLog()

Tests may want to look at the output from running a command, even if it
fails (e.g. with a non-zero return code). Provide a means to obtain this.

Another approach would be to return a class object containing both the
output and the exception, but I'm not sure if that would result in a lot
of refactoring.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Teddy Reed <teddy.reed@gmail.com>
test/py/multiplexed_log.py