diff options
Diffstat (limited to 'meta/lib/oeqa/utils/__init__.py')
-rw-r--r-- | meta/lib/oeqa/utils/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/__init__.py b/meta/lib/oeqa/utils/__init__.py index 6d1ec4cb99..53bdcbf266 100644 --- a/meta/lib/oeqa/utils/__init__.py +++ b/meta/lib/oeqa/utils/__init__.py | |||
@@ -1,4 +1,6 @@ | |||
1 | # | 1 | # |
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
2 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
3 | # | 5 | # |
4 | # Enable other layers to have modules in the same named directory | 6 | # Enable other layers to have modules in the same named directory |
@@ -88,3 +90,10 @@ def load_test_components(logger, executor): | |||
88 | "_executor_class defined." % (comp_name, comp_context)) | 90 | "_executor_class defined." % (comp_name, comp_context)) |
89 | 91 | ||
90 | return components | 92 | return components |
93 | |||
94 | def get_json_result_dir(d): | ||
95 | json_result_dir = os.path.join(d.getVar("LOG_DIR"), 'oeqa') | ||
96 | custom_json_result_dir = d.getVar("OEQA_JSON_RESULT_DIR") | ||
97 | if custom_json_result_dir: | ||
98 | json_result_dir = custom_json_result_dir | ||
99 | return json_result_dir \ No newline at end of file | ||