Skip to content

Commit

Permalink
Stop if there are no tests
Browse files Browse the repository at this point in the history
  • Loading branch information
albbas committed Mar 6, 2024
1 parent bebe7f4 commit 246d307
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/gramcheck-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ def load_config(self, args):
)
config["tests"] = yaml_settings.get("Tests", [])

if not config["tests"]:
print(
f"ERROR: No tests in {config['test_file']}",
file=sys.stderr,
)
sys.exit(99) # exit code 99 signals hard exit to Make
dupes = "\n".join(
{f"\t{test}" for test in config["tests"] if config["tests"].count(test) > 1}
)
Expand Down

0 comments on commit 246d307

Please sign in to comment.