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@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5433>
This commit is contained in:
parent
7406d627c8
commit
9f1412cf3e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue