]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest: Standardize json logging output directory
authorYeoh Ee Peng <ee.peng.yeoh@intel.com>
Wed, 7 Nov 2018 07:08:31 +0000 (15:08 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Nov 2018 22:21:01 +0000 (22:21 +0000)
Currently sdk & sdkext will output json file to LOG_DIR, while
selftest will output json file to TOPDIR/log.

Standardize selftest json output file to LOG_DIR.

Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/context.py

index 11d5877c5f6f009d3a79c7a4dd1266d36691b85e..302ff73bede3ef1e40ca7dd7e880a8754f0ae764 100644 (file)
@@ -205,7 +205,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
         runCmd("bitbake -e")
 
     def get_json_result_dir(self, args):
-        json_result_dir = os.path.join(os.path.dirname(os.path.abspath(args.output_log)), 'log', 'oeqa')
+        json_result_dir = os.path.join(self.tc.td["LOG_DIR"], 'oeqa')
         if "OEQA_JSON_RESULT_DIR" in self.tc.td:
             json_result_dir = self.tc.td["OEQA_JSON_RESULT_DIR"]