diff --git a/cases/smoke/basic/screenshot32/resource/capturescreentest.py b/cases/smoke/basic/screenshot32/resource/capturescreentest.py index 5123f63b776633a31ade209e2d1fe22920cc7cd4..fbab9b853bbc9b1e1d2753b25757e545c59338e1 100644 --- a/cases/smoke/basic/screenshot32/resource/capturescreentest.py +++ b/cases/smoke/basic/screenshot32/resource/capturescreentest.py @@ -410,19 +410,32 @@ if __name__ == "__main__": if lose_process: print_to_log("SmokeTest: error: %s, These processes do not exist!!!" % lose_process) sys_exit() + + apl_check_main(args.device_num) + apl_compare = os.path.normpath(os.path.join(os.path.dirname(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() + except: + print_to_log('SmokeTest: error: apl_compare.log not exist') + if 'APL Check failed' in apl_result: + print_to_log('SmokeTest: error: apl check failed') + sys_exit() # - # acl_check_main(args.device_num) - # native_sa = os.path.normpath(os.path.join(args.tools_path, "acls_check", "native_sa.log")) - # try: - # with open(native_sa, mode='r', encoding='utf-8', errors='ignore') as native_file: - # native_file.seek(0) - # acl_result = native_file.read() - # native_file.close() - # except Exception as reason: - # print_to_log("SmokeTest: error: native_sa.log do not exist!") - # if "ACL check failed" in acl_result: - # print_to_log("SmokeTest: error: acl check failed") - # sys_exit() + + acl_check_main(args.device_num) + native_sa = os.path.normpath(os.path.join(args.tools_path, "acls_check", "native_sa.log")) + try: + with open(native_sa, mode='r', encoding='utf-8', errors='ignore') as native_file: + native_file.seek(0) + acl_result = native_file.read() + native_file.close() + except Exception as reason: + print_to_log("SmokeTest: error: native_sa.log do not exist!") + if "ACL check failed" in acl_result: + print_to_log("SmokeTest: error: acl check failed") + sys_exit() try: args.test_num.index('/')