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:
Eric Anholt 2020-06-09 19:01:06 -07:00 committed by Marge Bot
parent 7406d627c8
commit 9f1412cf3e
1 changed files with 3 additions and 1 deletions

View File

@ -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)