Skip to content
Snippets Groups Projects
Commit 7cd5a35e authored by Austin Anderson's avatar Austin Anderson
Browse files

Handle nightly_job_basis being set but falsy

parent 5cda89f1
Branches
No related tags found
No related merge requests found
......@@ -139,8 +139,8 @@ for record in all_records:
# included in the nightly jobs if it was committed before a nightly job's
# commit. This way we can quickly tell when a commit was first tested in a TF
# Nightly test.
if "nightly_job_basis" in YAML_CONFIG:
basis = YAML_CONFIG["nightly_job_basis"]
basis = YAML_CONFIG.get("nightly_job_basis", False)
if basis:
if basis not in job_names_to_records:
exit(f"nightly_job_basis has been set to '{basis}', but those results are missing. Is the configuration correct?")
nightlies = job_names_to_records[basis]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment