print warning message when no testcase found

This commit is contained in:
debugtalk
2018-03-21 14:21:50 +08:00
parent 8c618d2325
commit 8b7bbb4171
3 changed files with 5 additions and 1 deletions

View File

@@ -215,6 +215,7 @@ class HttpRunner(object):
mapping = mapping or {}
task_suite = TaskSuite(self.path, mapping)
except exception.TestcaseNotFound:
logger.log_error("Testcases not found in {}".format(self.path))
sys.exit(1)
result = self.runner.run(task_suite)