From 64641d3218ea26a80de1dde1ac8f980d16953e7e Mon Sep 17 00:00:00 2001 From: liyanlin02 Date: Wed, 29 Nov 2023 16:08:49 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20f682d79=20from=20https://gitee.com/open?= =?UTF-8?q?harmony/developtools=5Fintegration=5Fverification/pulls/218=20A?= =?UTF-8?q?PL=20check=20=E9=87=8D=E6=96=B0=E4=B8=8A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liyanlin02 --- .../resource/capturescreentest.py | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/cases/smoke/basic/screenshot32/resource/capturescreentest.py b/cases/smoke/basic/screenshot32/resource/capturescreentest.py index 2951bd6..07a75ae 100644 --- a/cases/smoke/basic/screenshot32/resource/capturescreentest.py +++ b/cases/smoke/basic/screenshot32/resource/capturescreentest.py @@ -377,18 +377,18 @@ if __name__ == "__main__": else: print_to_log("SmokeTest: first processes check is ok") - # apl_check_main(args.device_num) - # apl_compare = os.path.normpath(os.path.join(args.tools_path, "APL_compare_03", "apl_compare.log")) - # try: - # with open(apl_compare, mode='r', encoding='utf-8', errors='ignore') as compare_file: - # compare_file.seek(0) - # apl_result = compare_file.read() - # compare_file.close() - # except Exception as reason: - # print_to_log("SmokeTest: error: apl_compare.log do not exist!") - # if "APL Check failed" in apl_result: - # print_to_log("SmokeTest: error: apl check failed") - # sys_exit() + apl_check_main(args.device_num) + apl_compare = os.path.normpath(os.path.join(args.tools_path, "APL_compare_03", "apl_compare.log")) + try: + with open(apl_compare, mode='r', encoding='utf-8', errors='ignore') as compare_file: + compare_file.seek(0) + apl_result = compare_file.read() + compare_file.close() + except Exception as reason: + print_to_log("SmokeTest: error: apl_compare.log do not exist!") + if "APL Check failed" in apl_result: + print_to_log("SmokeTest: error: apl check failed") + sys_exit() # main(args.device_num) # native_sa = os.path.normpath(os.path.join(args.tools_path, "acls_check", "native_sa.log")) -- Gitee