mirror of
https://github.com/openharmony/developtools_integration_verification.git
synced 2026-08-26 19:06:40 -04:00
!122 亮屏检查添加重试,规避目前存在的概率问题
Merge pull request !122 from hongshaojie/master
This commit is contained in:
@@ -350,7 +350,10 @@ if __name__ == "__main__":
|
||||
file_from_dev("/data/log/hilog/system_start_log_{}.tar".format(args.device_num), args.save_path)
|
||||
connect_check()
|
||||
launcher_similarity = shot_and_cmp("launcher.jpeg")
|
||||
if launcher_similarity >= 90:
|
||||
power_state = enter_shell_cmd("hidumper -s 3308", WAIT_TIME_ONE)
|
||||
if "State=2" not in power_state:
|
||||
print_to_log("SmokeTest:: ERROR, DISPLAY POWER MANAGER DUMP State ≠ 2")
|
||||
if launcher_similarity >= 90 and "State=2" in power_state:
|
||||
print_to_log("SmokeTest:: launcher screenshot comparison is ok!")
|
||||
break
|
||||
elif reboot_cnt >= 1:
|
||||
@@ -393,11 +396,6 @@ if __name__ == "__main__":
|
||||
else:
|
||||
print_to_log("SmokeTest:: first processes check is ok")
|
||||
|
||||
power_state = enter_shell_cmd("hidumper -s 3308", WAIT_TIME_ONE)
|
||||
if "State=2" not in power_state:
|
||||
print_to_log("SmokeTest:: DISPLAY POWER MANAGER DUMP State=0")
|
||||
sys_exit()
|
||||
|
||||
main(args.device_num)
|
||||
native_sa = os.path.normpath(os.path.join(args.tools_path, "acls_check", "native_sa.log"))
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user