As part of the solution to replace Testopia to store testresult, OEQA testimage need to output testresult into json files, where these json testresult files will be stored into git repository by the future test-case-management tools.
Signed-off-by: Yeoh Ee Peng <ee.peng.y...@intel.com> --- meta/classes/testimage.bbclass | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 2642a72..728c1af 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -308,7 +308,14 @@ def testimage_main(d): # Show results (if we have them) if not results: bb.fatal('%s - FAILED - tests were interrupted during execution' % pn, forcelog=True) - results.logDetails() + image = d.getVar("IMAGE_BASENAME") + json_result_dir = os.path.join(d.getVar("WORKDIR"), + 'temp', + 'json_testresults-%s' % os.getpid(), + 'runtime', + machine, + image) + results.logDetails(json_result_dir, {'TEST_TYPE': 'runtime', 'MACHINE': machine, 'IMAGE_BASENAME': image}) results.logSummary(pn) if not results.wasSuccessful(): bb.fatal('%s - FAILED - check the task log and the ssh log' % pn, forcelog=True) -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core