summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMardegan, Alberto <AMardegan@luxoft.com>2019-04-25 08:03:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-22 00:31:49 +0100
commit2ba5557e0b77c832c763b1051a30078a6ea73636 (patch)
tree0fd91f6831b47199c9a5fc430b8dfc193aee4f1a /meta/classes
parentbb3a8929c79b54b63c0e03c8c5f0b4fa5b705cde (diff)
downloadpoky-2ba5557e0b77c832c763b1051a30078a6ea73636.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: 68919826fe4d4db4582223569c5a939a9c2f9c72) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/testimage.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index cb8c12acce..3479228307 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -314,7 +314,8 @@ def testimage_main(d):
314 configuration = get_testimage_configuration(d, 'runtime', machine) 314 configuration = get_testimage_configuration(d, 'runtime', machine)
315 results.logDetails(get_testimage_json_result_dir(d), 315 results.logDetails(get_testimage_json_result_dir(d),
316 configuration, 316 configuration,
317 get_testimage_result_id(configuration)) 317 get_testimage_result_id(configuration),
318 dump_streams=d.getVar('TESTREPORT_FULLLOGS'))
318 results.logSummary(pn) 319 results.logSummary(pn)
319 if not results.wasSuccessful(): 320 if not results.wasSuccessful():
320 bb.fatal('%s - FAILED - check the task log and the ssh log' % pn, forcelog=True) 321 bb.fatal('%s - FAILED - check the task log and the ssh log' % pn, forcelog=True)