Mesa (master): ci/tracie: Print the path if the trace isn't found.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 25 18:12:38 UTC 2020
Module: Mesa
Branch: master
Commit: 9f1412cf3eb1c45beca9d5c973dfbf4fa84c10e8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f1412cf3eb1c45beca9d5c973dfbf4fa84c10e8
Author: Eric Anholt <eric at anholt.net>
Date: Tue Jun 9 19:01:06 2020 -0700
ci/tracie: Print the path if the trace isn't found.
I hit this a few times while setting up CI.
Reviewed-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5433>
---
.gitlab-ci/tracie/tracie.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.gitlab-ci/tracie/tracie.py b/.gitlab-ci/tracie/tracie.py
index 854ba8a17c5..59016cae164 100644
--- a/.gitlab-ci/tracie/tracie.py
+++ b/.gitlab-ci/tracie/tracie.py
@@ -85,7 +85,9 @@ def gitlab_ensure_trace(project_url, repo_commit, trace):
trace_path = TRACES_DB_PATH + trace['path']
if project_url is None:
assert(repo_commit is None)
- assert(os.path.exists(trace_path))
+ if not os.path.exists(trace_path):
+ print("{} missing".format(trace_path))
+ sys.exit(1)
return
os.makedirs(os.path.dirname(trace_path), exist_ok=True)
More information about the mesa-commit
mailing list