From: Eric Anholt Date: Wed, 10 Jun 2020 02:01:06 +0000 (-0700) Subject: ci/tracie: Print the path if the trace isn't found. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f1412cf3eb1c45beca9d5c973dfbf4fa84c10e8;p=mesa.git 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 Part-of: --- 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)