提交 94fee291 编写于 作者: R redjie

add failure photos_log

Signed-off-by: Nredjie <hongshaojie@h-partners.com>
Change-Id: Ifd7b2b84de92799acbd19da5eaac62da50b31820
上级 8c738fd7
......@@ -101,8 +101,8 @@
"entry": "aa start -a com.ohos.photos.MainAbility -b com.ohos.photos",
"compress_log":["cd /data/log/hilog && tar -cf photos_log.tar *"],
"all_actions": [
[2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [2, "shot_cmd"], [2, "recent-x-y"], [2, "recent_del-x-y"], [1, "cmp_cmd-level", 200000],
[2, "shot_cmd", "photo_check"], [2, "recent-x-y"], [2, "recent_del-x-y"], [1, "stop_hilog"], [1, "compress_log"], [1, "get_file_from_dev", "/data/log/hilog/photos_log.tar"], [2, "home-x-y"]
[2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [2, "permisson_ok-x-y"], [2, 550, 700], [2, 550, 700], [2, 550, 700], [2, "shot_cmd"], [2, "recent-x-y"], [2, "recent_del-x-y"], [1, "cmp_cmd-level", 200000],
[2, "shot_cmd", "photo_check"], [2, "recent-x-y"], [2, "recent_del-x-y"], [1, "stop_hilog"], [1, "log_packaging"], [1, "get_photos_log_from_dev"], [2, "home-x-y"]
]
},
{
......
......@@ -321,6 +321,12 @@ if __name__ == "__main__":
elif type(single_action[1]) == str and single_action[1] == 'connect_wifi':
next_cmd = ""
ConnectToWifi(args.tools_path)
elif type(single_action[1]) == str and single_action[1] == 'log_packaging':
next_cmd = ""
EnterShellCmd("cd /data/log/hilog && tar -cf photos_log_{}.tar *".format(3 - testcnt))
elif type(single_action[1]) == str and single_action[1] == 'get_photos_log_from_dev':
next_cmd = ""
EnterCmd("hdc_std -t {} file recv \"/data/log/hilog/photos_log_{}.tar\" \"{}\"".format(args.device_num, 3 - testcnt, os.path.normpath(args.save_path)))
#process_crash_check
elif type(single_action[1]) == str and single_action[1] == 'process_crash_check':
next_cmd = ""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册