Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Test Developertest
提交
940c4374
T
Test Developertest
项目概览
OpenHarmony
/
Test Developertest
大约 1 年 前同步成功
通知
2
Star
23
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Test Developertest
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
940c4374
编写于
7月 08, 2022
作者:
M
mipengwei
提交者:
Gitee
7月 08, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Signed-off-by:mipengwei <mipengwei@huawei.com>
上级
d1044e27
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
64 deletion
+0
-64
src/core/command/distribute_utils.py
src/core/command/distribute_utils.py
+0
-41
src/core/command/run.py
src/core/command/run.py
+0
-23
未找到文件。
src/core/command/distribute_utils.py
浏览文件 @
940c4374
...
...
@@ -28,47 +28,6 @@ from xdevice import ExecInfo
LOG
=
platform_logger
(
"distribute_utils"
)
def
execute_distribute_test_file
(
py_test_file
,
result_rootpath
):
if
os
.
path
.
exists
(
py_test_file
):
environ_dic
=
dict
(
os
.
environ
)
environ_dic
[
"PYTEST_PYTESTPATH"
]
=
sys
.
pytest_dir
environ_dic
[
"PYTEST_RESULTPATH"
]
=
result_rootpath
proc
=
subprocess
.
Popen
([
sys
.
executable
,
py_test_file
],
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
,
shell
=
False
,
env
=
environ_dic
)
print
(
"proc"
,
proc
)
try
:
while
proc
.
poll
()
is
None
:
line
=
proc
.
stdout
.
readline
()
line
=
line
.
strip
()
if
isinstance
(
line
,
bytes
):
line
=
line
.
decode
(
'utf-8'
,
'ignore'
)
if
line
!=
""
:
LOG
.
info
(
line
)
finally
:
data
=
proc
.
stdout
.
read
()
if
isinstance
(
data
,
bytes
):
data
=
data
.
decode
(
'utf-8'
,
'ignore'
)
if
data
!=
""
:
LOG
.
info
(
data
.
rstrip
(
"
\n
"
))
data
=
proc
.
stderr
.
read
()
if
isinstance
(
data
,
bytes
):
data
=
data
.
decode
(
'utf-8'
,
'ignore'
)
if
data
!=
""
:
error_message
=
data
.
rstrip
(
"
\n
"
)
LOG
.
info
(
error_message
)
proc
.
stdout
.
close
()
proc
.
stderr
.
close
()
return
def
make_device_info_file
(
tmp_path
):
env_manager
=
EnvironmentManager
()
device_info_file_path
=
os
.
path
.
join
(
tmp_path
,
...
...
src/core/command/run.py
浏览文件 @
940c4374
...
...
@@ -228,29 +228,6 @@ class Run(object):
LOG
.
info
(
"testcase_path=%s"
%
testcase_path
)
return
testcase_path
@
classmethod
def
get_tests_output_path
(
cls
,
product_form
):
testcase_path
=
UserConfigManager
().
get_test_case_output_dir
()
if
testcase_path
==
""
:
all_product_list
=
scan_support_product
()
if
product_form
in
all_product_list
:
if
is_open_source_product
(
product_form
):
testcase_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
get_build_output_path
(
product_form
),
"packages"
,
"phone"
,
"tests"
))
else
:
testcase_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
get_build_output_path
(
product_form
),
"packages"
,
product_form
,
"tests"
))
else
:
testcase_path
=
os
.
path
.
join
(
get_build_output_path
(
product_form
),
"test"
)
LOG
.
info
(
"testcase_path=%s"
%
testcase_path
)
return
testcase_path
@
classmethod
def
get_coverage_outpath
(
cls
,
options
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录