提交 679105ae 编写于 作者: D deveco_test

修复用例总数收集异常的bug

Signed-off-by: Ndeveco_test <liguangjie1@huawei.com>
上级 08c8a385
...@@ -1223,7 +1223,7 @@ class OHJSUnitTestListParser(IParser): ...@@ -1223,7 +1223,7 @@ class OHJSUnitTestListParser(IParser):
if "{" in line or "}" in line: if "{" in line or "}" in line:
self.json_str = "%s%s" % (self.json_str, line) self.json_str = "%s%s" % (self.json_str, line)
return return
if "user test finished." in line: if "dry run finished" in line:
suite_dict_list = json.loads(self.json_str).get("suites", []) suite_dict_list = json.loads(self.json_str).get("suites", [])
for suite_dict in suite_dict_list: for suite_dict in suite_dict_list:
for class_name, test_name_dict_list in suite_dict.items(): for class_name, test_name_dict_list in suite_dict.items():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册