Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Test Xdevice
提交
f6a0539d
T
Test Xdevice
项目概览
OpenHarmony
/
Test Xdevice
10 个月 前同步成功
通知
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,体验更适合开发者的 AI 搜索 >>
提交
f6a0539d
编写于
6月 15, 2021
作者:
O
openharmony_ci
提交者:
Gitee
6月 15, 2021
浏览文件
操作
浏览文件
下载
差异文件
!22 适配hdc协议变更
Merge pull request !22 from alex_hold/master
上级
387cffaf
2d11033c
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
12 addition
and
3 deletion
+12
-3
extension/src/xdevice_extension/_core/environment/dmlib.py
extension/src/xdevice_extension/_core/environment/dmlib.py
+2
-2
src/xdevice/_core/executor/scheduler.py
src/xdevice/_core/executor/scheduler.py
+10
-1
未找到文件。
extension/src/xdevice_extension/_core/environment/dmlib.py
浏览文件 @
f6a0539d
...
...
@@ -1052,8 +1052,8 @@ class HdcHelper:
@
staticmethod
def
handle_shake
(
connection
,
connect_key
=
""
):
reply
=
HdcHelper
.
read
(
connection
,
4
0
)
reply_size
=
struct
.
unpack
(
">I12s
24
s"
,
reply
)
reply
=
HdcHelper
.
read
(
connection
,
4
8
)
reply_size
=
struct
.
unpack
(
">I12s
32
s"
,
reply
)
banner_str
=
b
'OHOS HDC'
connect_key
=
connect_key
.
encode
(
"utf-8"
)
size
=
struct
.
calcsize
(
'12s256s'
)
...
...
src/xdevice/_core/executor/scheduler.py
浏览文件 @
f6a0539d
...
...
@@ -84,6 +84,7 @@ class Scheduler(object):
task_type
=
""
task_name
=
""
mode
=
""
proxy
=
None
# command_queue to store test commands
command_queue
=
[]
...
...
@@ -789,6 +790,10 @@ class Scheduler(object):
LOG
.
info
(
"get upload params: %s, %s, %s, %s, %s, %s"
%
(
case_id
,
result
,
error
,
start_time
,
end_time
,
report_path
))
if
Scheduler
.
proxy
:
Scheduler
.
proxy
.
upload_result
(
case_id
,
result
,
error
,
start_time
,
end_time
,
report_path
)
return
from
agent.factory
import
upload_result
upload_result
(
case_id
,
result
,
error
,
start_time
,
end_time
,
report_path
)
...
...
@@ -814,7 +819,6 @@ class Scheduler(object):
error_no
=
"00201"
)
return
LOG
.
info
(
"need upload %s case"
%
len
(
upload_params
))
from
agent.factory
import
upload_batch
upload_suite
=
[]
for
upload_param
in
upload_params
:
case_id
,
result
,
error
,
start_time
,
end_time
,
report_path
=
\
...
...
@@ -824,6 +828,11 @@ class Scheduler(object):
"report"
:
report_path
}
LOG
.
info
(
"case info: %s"
,
case
)
upload_suite
.
append
(
case
)
if
Scheduler
.
proxy
:
Scheduler
.
proxy
.
upload_result
(
case_id
,
result
,
error
,
start_time
,
end_time
,
report_path
)
return
from
agent.factory
import
upload_batch
upload_batch
(
upload_suite
)
@
classmethod
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录