mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 20:24:30 +08:00
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 commit8546d1dd78
)
This commit is contained in:
parent
97e2965b07
commit
d1e3c0b430
@ -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"
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user