未验证 提交 0e2ec4f4 编写于 作者: O openharmony_ci 提交者: Gitee

!106 cppcrash崩溃检测去除

Merge pull request !106 from hongshaojie/pr_master
......@@ -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, "shot_cmd", "photo_check_1"], [2, "permisson_ok-x-y"], [2, "shot_cmd", "photo_check_2"], [2, "permisson_ok-x-y"], [2, "shot_cmd", "photo_check_3"], [2, "permisson_ok-x-y"], [2, "shot_cmd"], [2, "recent-x-y"], [2, "shot_cmd", "photo_check_4"], [2, "recent_del-x-y"],
[2, "shot_cmd", "photo_check_5"], [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, "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"],
[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"]
]
},
{
......
......@@ -431,14 +431,8 @@ if __name__ == "__main__":
EnterShellCmd("cd /data/log/faultlog/temp && tar -cf after_test_crash_log_{}.tar cppcrash*".format(args.device_num))
GetFileFromDev("/data/log/faultlog/temp/after_test_crash_log_{}.tar".format(args.device_num), os.path.normpath(args.save_path))
crash_cnt = EnterShellCmd("cd /data/log/faultlog/temp && find . -name cppcrash*", 2)
result = "".join(crash_cnt)
findsome = result.find("cppcrash", 0, len(result))
if findsome != -1:
PrintToLog("ERROR:find cppcrash !\n")
PrintToLog("SmokeTest find some fatal problems!")
PrintToLog("End of check, test failed!")
SysExit()
EnterShellCmd("cd /data/log/faultlog/temp && find . -name cppcrash*", 2)
EnterShellCmd("cd /data/log/faultlog/temp && grep \"Process name\" -rnw ./", 2)
if len(fail_idx_list) != 0:
PrintToLog("ERROR: name {}, index {}, these testcase is failed".format(fail_name_list, fail_idx_list))
if fail_name_list.count('launcher') or fail_name_list.count('settings_keyboard'):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册