Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Test Xdevice
提交
1c534669
T
Test Xdevice
项目概览
OpenHarmony
/
Test Xdevice
大约 1 年 前同步成功
通知
6
Star
23
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Test Xdevice
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
1c534669
编写于
5月 09, 2022
作者:
O
openharmony_ci
提交者:
Gitee
5月 09, 2022
浏览文件
操作
浏览文件
下载
差异文件
!123 modified xdevice
Merge pull request !123 from 孙晨光/master
上级
746ab227
af05f907
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
3 deletion
+16
-3
src/xdevice/_core/driver/parser_lite.py
src/xdevice/_core/driver/parser_lite.py
+16
-3
未找到文件。
src/xdevice/_core/driver/parser_lite.py
浏览文件 @
1c534669
...
...
@@ -324,7 +324,7 @@ class CppTestParserLite(IParser):
if
not
error_msg
:
error_msg
=
"Unknown error"
if
not
check_pub_key_exist
():
LOG
.
debug
(
"
error_
msg:%s"
%
error_msg
)
LOG
.
debug
(
"
Error
msg:%s"
%
error_msg
)
def
mark_test_as_failed
(
self
,
test
):
if
not
self
.
state_machine
.
current_suite
and
not
test
.
class_name
:
...
...
@@ -419,7 +419,7 @@ class CppTestListParserLite(IParser):
def
_process_method_line
(
self
,
line
):
if
not
self
.
last_test_class_name
:
LOG
.
error
(
"
p
arsed new test case name %s but no test class"
"
P
arsed new test case name %s but no test class"
" name has been set"
%
line
,
error_no
=
"00405"
)
else
:
test
=
TestDescription
(
self
.
last_test_class_name
,
...
...
@@ -443,7 +443,7 @@ class CppTestListParserLite(IParser):
self
.
_process_method_line
(
line
)
else
:
if
not
check_pub_key_exist
():
LOG
.
debug
(
"
l
ine ignored: %s"
%
line
)
LOG
.
debug
(
"
L
ine ignored: %s"
%
line
)
def
handle_test_tag
(
self
,
test_class
,
test_name
):
test_result
=
self
.
state_machine
.
test
(
reset
=
True
)
...
...
@@ -534,6 +534,7 @@ class CTestParser(IParser):
self
.
listeners
=
[]
self
.
product_info
=
{}
self
.
is_params
=
False
self
.
result_lines
=
[]
def
get_suite_name
(
self
):
return
self
.
suites_name
...
...
@@ -600,6 +601,18 @@ class CTestParser(IParser):
if
self
.
state_machine
.
suites_is_started
()
or
\
self
.
_is_ctest_start_test_run
(
line
):
try
:
test_matcher
=
re
.
match
(
r
".*(\d+ Tests).+"
,
line
)
other_matcher
=
\
re
.
match
(
r
".*(\d+ Failures \d+ Ignored).*"
,
line
)
if
(
test_matcher
or
other_matcher
)
and
\
not
self
.
_is_ctest_run
(
line
):
if
test_matcher
:
self
.
result_lines
.
append
(
test_matcher
.
group
(
1
))
if
other_matcher
:
self
.
result_lines
.
append
(
other_matcher
.
group
(
1
))
line
=
" "
.
join
(
self
.
result_lines
)
self
.
result_lines
.
clear
()
if
self
.
_is_ctest_start_test_run
(
line
):
self
.
handle_suites_started_tag
()
elif
self
.
_is_ctest_end_test_run
(
line
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录