1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

oeqa/postactions: Separate artefact collection from test result collection

Combining the test result collection and artefact collection hasn't worked out
well as the data has different life cycles, the artefacts can be large and
we need to be able to clean them up on a different timescale.

Separate them out to be controlled by a separate variable, OEQA_ARTEFACT_DIR.
Also rework the code to inject a directory with a date/time and random component
to allow builds to run in parallel. Pass function arguments to avoid re-reading
variables.

(From OE-Core rev: e1cf7e94c3fcbe7dbc29e4286f0e1014b95964a9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2024-07-17 14:29:20 +01:00
parent 00bb1202d2
commit fdcaf1cce9
2 changed files with 36 additions and 33 deletions
+7 -1
View File
@@ -96,4 +96,10 @@ def get_json_result_dir(d):
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
return json_result_dir
def get_artefact_dir(d):
custom_json_result_dir = d.getVar("OEQA_ARTEFACT_DIR")
if custom_json_result_dir:
return custom_json_result_dir
return os.path.join(d.getVar("LOG_DIR"), 'oeqa-artefacts')