]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core/runner: dump stdout and stderr of each test case
authorMardegan, Alberto <AMardegan@luxoft.com>
Thu, 25 Apr 2019 08:03:28 +0000 (08:03 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Apr 2019 09:05:23 +0000 (10:05 +0100)
commitfd0048630ece5b21efb3a79e97046be0ab2a1514
treee7d7bf2911ad24750bbf949c693f1e24c6f94e5c
parent43aaa117386490c822b824974fb095bd0d3ce1a3
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>
meta/classes/testimage.bbclass
meta/lib/oeqa/core/runner.py