提交 32262173 编写于 作者: A Amador Pahim

robot: fix issue on missing test references

We have to consider that `avocado list` may be executed without the test
references.
Signed-off-by: NAmador Pahim <apahim@redhat.com>
上级 5b4ecf4c
......@@ -82,6 +82,10 @@ class RobotLoader(loader.TestLoader):
def discover(self, url, which_tests=False):
avocado_suite = []
subtests_filter = None
if url is None:
return []
if ':' in url:
url, _subtests_filter = url.split(':', 1)
subtests_filter = re.compile(_subtests_filter)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册