]> 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)
committerArmin Kuster <akuster808@gmail.com>
Thu, 2 May 2019 20:30:47 +0000 (13:30 -0700)
commitfd57b34d7c8a120273d65cd361be208fbdaeff50
treecae3577c4ef820f884edc9ba05ebd49d4a82eb18
parentba56d8729a58d373bb301dda304c78702ded5869
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>
meta/classes/testimage.bbclass
meta/lib/oeqa/core/runner.py