From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mail.openembedded.org (Postfix) with ESMTP id E838479AD4 for ; Mon, 15 Oct 2018 07:40:15 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2018 00:40:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,383,1534834800"; d="scan'208";a="100295805" Received: from andromeda02.png.intel.com ([10.221.183.11]) by orsmga002.jf.intel.com with ESMTP; 15 Oct 2018 00:40:16 -0700 From: Yeoh Ee Peng To: openembedded-core@lists.openembedded.org Date: Mon, 15 Oct 2018 15:24:54 +0800 Message-Id: <1539588294-5532-5-git-send-email-ee.peng.yeoh@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539588294-5532-1-git-send-email-ee.peng.yeoh@intel.com> References: <1539588294-5532-1-git-send-email-ee.peng.yeoh@intel.com> Subject: [PATCH 5/5] testsdk.bbclass: write testresult to json files X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 07:40:16 -0000 As part of the solution to replace Testopia to store testresult, OEQA sdk and sdkext 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 --- meta/classes/testsdk.bbclass | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass index d3f475d..c0f268e 100644 --- a/meta/classes/testsdk.bbclass +++ b/meta/classes/testsdk.bbclass @@ -81,7 +81,12 @@ def testsdk_main(d): component = "%s %s" % (pn, OESDKTestContextExecutor.name) context_msg = "%s:%s" % (os.path.basename(tcname), os.path.basename(sdk_env)) - result.logDetails() + json_result_dir = os.path.join(d.getVar("WORKDIR"), + 'temp', + 'json_testresults-%s' % os.getpid(), + 'sdk', + d.getVar("IMAGE_BASENAME")) + result.logDetails(json_result_dir) result.logSummary(component, context_msg) if not result.wasSuccessful(): @@ -185,7 +190,12 @@ def testsdkext_main(d): component = "%s %s" % (pn, OESDKExtTestContextExecutor.name) context_msg = "%s:%s" % (os.path.basename(tcname), os.path.basename(sdk_env)) - result.logDetails() + json_result_dir = os.path.join(d.getVar("WORKDIR"), + 'temp', + 'json_testresults-%s' % os.getpid(), + 'sdkext', + d.getVar("IMAGE_BASENAME")) + result.logDetails(json_result_dir) result.logSummary(component, context_msg) if not result.wasSuccessful(): -- 2.7.4