test: combine stdout/stderr from failed test
authorDan Streetman <ddstreet@canonical.com>
Fri, 30 Apr 2021 00:21:10 +0000 (20:21 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 9 Jul 2021 14:54:09 +0000 (16:54 +0200)
commit2aed6a0405e279960a6f55cfcbe70200b9b99ed9
tree78a60b82ffbacdd0b1bd79a9daf2c557ac7e9304
parentd3018c5ddd8ba5b0f7c43499ce24450d9d155950
test: combine stdout/stderr from failed test

Printing stdout and stderr from a failed test makes it harder to
interpret what the specific problem was; instead let's print out
the lines in order as we got them when the test was run

Also save failed test output to file if ARTIFACT_DIRECTORY is defined

(cherry picked from commit d57e871c60805e3f1f57729ea8022477a611697d)
test/run-unit-tests.py