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

Signed-off-by: deveco_test <liguangjie1@huawei.com>
This commit is contained in:
deveco_test 2022-08-08 11:12:39 +08:00
parent 08c8a38512
commit 679105ae3b

View File

@ -1223,7 +1223,7 @@ class OHJSUnitTestListParser(IParser):
if "{" in line or "}" in line:
self.json_str = "%s%s" % (self.json_str, line)
return
if "user test finished." in line:
if "dry run finished" in line:
suite_dict_list = json.loads(self.json_str).get("suites", [])
for suite_dict in suite_dict_list:
for class_name, test_name_dict_list in suite_dict.items():