Skip to content

Commit

Permalink
Merge pull request #13 from GovStackWorkingGroup/lruzicki/hotfix
Browse files Browse the repository at this point in the history
lruzicki/hotfix: refine list_test_executions to handle non-directory paths and improve validation
  • Loading branch information
pgesek authored Oct 6, 2023
2 parents 3a3cafd + 9ad3615 commit 71d979e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/templates/generate-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def is_valid(test_harness_path):
If shell script is not provided given entity is excluded from test harness.
"""
if not os.path.isdir(test_harness_path):
return False

elements = [os.path.basename(name) for name in os.listdir(test_harness_path)]
if 'test_entrypoint.sh' not in elements:
return False
Expand Down

0 comments on commit 71d979e

Please sign in to comment.