fix: check config type

This commit is contained in:
debugtalk
2020-06-21 11:54:14 +08:00
parent a2fc817b5e
commit d58d45a196

View File

@@ -511,6 +511,11 @@ def __make(tests_path: Text) -> NoReturn:
f"Invalid testcase/testsuite: missing config part in testcase/testsuite.\npath: {test_file}"
)
continue
elif not isinstance(test_content["config"], Dict):
logger.warning(
f"Invalid testcase/testsuite: config should be dict type, got {test_content['config']}"
)
continue
# ensure path absolute
test_content.setdefault("config", {})["path"] = test_file