From 9f1412cf3eb1c45beca9d5c973dfbf4fa84c10e8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 9 Jun 2020 19:01:06 -0700 Subject: [PATCH] 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: --- .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) -- 2.30.2