gitlab-ci: create always the "results" directory with tracie

Otherwise, we will fail when the traces description file doesn't
contain any checksum for the specified device.

Fixes: efbbf8bb81 ("tracie: Print results in a machine readable format")
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4839>
(cherry picked from commit 8546d1dd78)
This commit is contained in:
Andres Gomez 2020-04-30 22:49:58 +03:00 committed by Eric Engestrom
parent 97e2965b07
commit d1e3c0b430
3 changed files with 3 additions and 1 deletions

View File

@ -86,6 +86,7 @@ tracie_fails_on_image_mismatch() {
}
tracie_skips_traces_without_checksum() {
echo "traces:" > "$TEST_DIR/tests/traces.yml"
echo " - path: trace1/red.testtrace" >> "$TEST_DIR/tests/traces.yml"
echo " expectations:" >> "$TEST_DIR/tests/traces.yml"
echo " - device: bla" >> "$TEST_DIR/tests/traces.yml"

View File

@ -165,6 +165,7 @@ def main():
all_ok = all_ok and ok
results.update(result)
os.makedirs(RESULTS_PATH, exist_ok=True)
with open(os.path.join(RESULTS_PATH, 'results.yml'), 'w') as f:
yaml.safe_dump(results, f, default_flow_style=False)

View File

@ -31,7 +31,7 @@
"description": "gitlab-ci: create always the \"results\" directory with tracie",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "efbbf8bb81e97a2b2d2e6e018750ef36cd460676"
},