diff options
author | Mardegan, Alberto <AMardegan@luxoft.com> | 2019-04-25 08:03:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-04-26 10:09:08 +0100 |
commit | e03d103e10dea28e6cc5ed2136e3d6d133d6c0ef (patch) | |
tree | 7cb38c1e7ba042e4c9d04e70d44252a374ae3fe0 /meta/classes/testimage.bbclass | |
parent | 9d997dff7b5506a069a886ece15ed433965f4194 (diff) | |
download | poky-e03d103e10dea28e6cc5ed2136e3d6d133d6c0ef.tar.gz |
oeqa/core/runner: dump stdout and stderr of each test case
Some CI pipelines might perform further processing of the test output
(for instance, to plot some metrics into a chart). However, Since `thud`
we switched away from the XML-based jUnit reporting, and at the same
time we lost the ability of collecting the stdout and stderr of the
various tests.
We now restore this functionality by adding `stdout` and `stderr` keys
to the JSON reports. This behavior is off by default; in order to enable
it, one must set the `TESTREPORT_FULLLOGS` variable in the bitbake
configuration.
(From OE-Core rev: fd0048630ece5b21efb3a79e97046be0ab2a1514)
Signed-off-by: Alberto Mardegan <amardegan@luxoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r-- | meta/classes/testimage.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index ff1c53b93e..9bb5a5cb0b 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -316,7 +316,8 @@ def testimage_main(d): | |||
316 | configuration = get_testimage_configuration(d, 'runtime', machine) | 316 | configuration = get_testimage_configuration(d, 'runtime', machine) |
317 | results.logDetails(get_testimage_json_result_dir(d), | 317 | results.logDetails(get_testimage_json_result_dir(d), |
318 | configuration, | 318 | configuration, |
319 | get_testimage_result_id(configuration)) | 319 | get_testimage_result_id(configuration), |
320 | dump_streams=d.getVar('TESTREPORT_FULLLOGS')) | ||
320 | results.logSummary(pn) | 321 | results.logSummary(pn) |
321 | if not results.wasSuccessful(): | 322 | if not results.wasSuccessful(): |
322 | bb.fatal('%s - FAILED - check the task log and the ssh log' % pn, forcelog=True) | 323 | bb.fatal('%s - FAILED - check the task log and the ssh log' % pn, forcelog=True) |