diff options
author | Mardegan, Alberto <AMardegan@luxoft.com> | 2019-04-25 08:03:28 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-05-02 13:30:47 -0700 |
commit | fd57b34d7c8a120273d65cd361be208fbdaeff50 (patch) | |
tree | cae3577c4ef820f884edc9ba05ebd49d4a82eb18 /meta/classes/testimage.bbclass | |
parent | ba56d8729a58d373bb301dda304c78702ded5869 (diff) | |
download | openembedded-core-contrib-fd57b34d7c8a120273d65cd361be208fbdaeff50.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.
Signed-off-by: Alberto Mardegan <amardegan@luxoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
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): configuration = get_testimage_configuration(d, 'runtime', machine) results.logDetails(get_testimage_json_result_dir(d), configuration, - get_testimage_result_id(configuration)) + get_testimage_result_id(configuration), + dump_streams=d.getVar('TESTREPORT_FULLLOGS')) results.logSummary(pn) if not results.wasSuccessful(): bb.fatal('%s - FAILED - check the task log and the ssh log' % pn, forcelog=True) |