Skip to content

Commit 50f8cf0

Browse files
committed
9pm.py: print graceful error message if top suite is empty
Signed-off-by: Richard Alpe <[email protected]>
1 parent 5868949 commit 50f8cf0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

9pm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ def parse_suite(suite_path, parent_suite_path, options, settings, name=None):
251251
sys.exit(1)
252252

253253
data = parse_yaml(suite_path)
254+
if not data:
255+
print(f"fatal, empty suite {suite['name']}")
256+
sys.exit(1)
254257

255258
settings = get_suite_settings(suite['name'], data, settings)
256259

0 commit comments

Comments
 (0)