Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Applications Sample Wifi Iot
提交
b9201296
A
Applications Sample Wifi Iot
项目概览
OpenHarmony
/
Applications Sample Wifi Iot
8 个月 前同步成功
通知
3
Star
24
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
Applications Sample Wifi Iot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
b9201296
编写于
10月 18, 2022
作者:
O
openharmony_ci
提交者:
Gitee
10月 18, 2022
浏览文件
操作
浏览文件
下载
差异文件
!241 添加数据库中间文件media_library.db-wal的检查
Merge pull request !241 from hongshaojie/pr_master
上级
8371740e
0e83923d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
6 deletion
+4
-6
screenshot32/resource/app_capture_screen_test_config.json
screenshot32/resource/app_capture_screen_test_config.json
+3
-2
screenshot32/resource/capturescreentest.py
screenshot32/resource/capturescreentest.py
+1
-4
未找到文件。
screenshot32/resource/app_capture_screen_test_config.json
浏览文件 @
b9201296
...
...
@@ -92,10 +92,11 @@
"entry"
:
""
,
"start_screenshot"
:
[
"aa start -a com.ohos.screenshot.ServiceExtAbility -b com.ohos.screenshot"
],
"start_photos"
:
[
"aa start -a com.ohos.photos.MainAbility -b com.ohos.photos"
],
"cp_db"
:
[
"cp /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/rdb/media_library.db /data/photo.db"
],
"kill_photos"
:
[
"killall com.ohos.photos"
],
"all_actions"
:
[
[
8
,
"start_screenshot"
],
[
5
,
"start_photos"
],
[
2
,
"last_photos-x-y"
],
[
2
,
"shot_cmd"
],
[
1
,
"cmp_cmd-level"
],
[
1
,
"cp_db"
],
[
1
,
"get_file_from_dev"
,
"/data/photo.db"
],
[
8
,
"start_screenshot"
],
[
5
,
"start_photos"
],
[
2
,
"last_photos-x-y"
],
[
2
,
"shot_cmd"
],
[
1
,
"cmp_cmd-level"
],
[
1
,
"get_file_from_dev"
,
"/data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/rdb/media_library.db"
],
[
1
,
"get_file_from_dev"
,
"/data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/rdb/media_library.db-wal"
],
[
2
,
"photo_check"
],
[
1
,
"process_check"
,
"com.ohos.medialibrary.medialibrarydata"
],
[
2
,
"sandbox_path_check"
],
[
1
,
"kill_photos"
]
]
},
...
...
screenshot32/resource/capturescreentest.py
浏览文件 @
b9201296
...
...
@@ -475,7 +475,7 @@ if __name__ == "__main__":
testok
=
-
1
elif
type
(
single_action
[
1
])
==
str
and
single_action
[
1
]
==
'photo_check'
:
next_cmd
=
""
if
ImageCheck
(
"{}
\\
photo
.db"
.
format
(
os
.
path
.
normpath
(
args
.
save_path
)),
1
)
==
1
and
testok
==
1
:
if
ImageCheck
(
"{}
\\
media_library
.db"
.
format
(
os
.
path
.
normpath
(
args
.
save_path
)),
1
)
==
1
and
testok
==
1
:
testok
=
1
else
:
testok
=
-
1
...
...
@@ -565,13 +565,11 @@ if __name__ == "__main__":
if
process_pid
[
pname
]
!=
pidlist
:
if
pname
in
two_check_process_list
:
PrintToLog
(
"SmokeTest:: error: pid of %s is different the first check"
%
pname
)
SysExit
()
else
:
PrintToLog
(
"SmokeTest:: warnning: pid of %s is different the first check"
%
pname
)
elif
len
(
pidlist
)
!=
1
:
if
pname
in
two_check_process_list
:
PrintToLog
(
"SmokeTest:: error: pid of %s is not only one"
%
pname
)
SysExit
()
else
:
PrintToLog
(
"SmokeTest:: warnning: pid of %s is not only one"
%
pname
)
except
:
...
...
@@ -579,7 +577,6 @@ if __name__ == "__main__":
if
second_check_lose_process
:
PrintToLog
(
"SmokeTest:: error: pid of %s is not exist"
%
pname
)
SysExit
()
else
:
PrintToLog
(
"SmokeTest:: second processes check is ok"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录