mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
lib/oeqa: share get_json_result_dir helper
Multiple places in oeqa need to get the log output path, and redefine a small helper to accomplish this Define this helper in lib/oeqa/utils/__init__.py and import it wherever needed to allow using it. (From OE-Core rev: 01b1a6a5a4e7cede4d23a981b5144ae9c8306274) Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
031099c417
commit
fec128bd62
@@ -90,3 +90,10 @@ def load_test_components(logger, executor):
|
||||
"_executor_class defined." % (comp_name, comp_context))
|
||||
|
||||
return components
|
||||
|
||||
def get_json_result_dir(d):
|
||||
json_result_dir = os.path.join(d.getVar("LOG_DIR"), 'oeqa')
|
||||
custom_json_result_dir = d.getVar("OEQA_JSON_RESULT_DIR")
|
||||
if custom_json_result_dir:
|
||||
json_result_dir = custom_json_result_dir
|
||||
return json_result_dir
|
||||
Reference in New Issue
Block a user