From dc1eac0a9715dc6e14c96852af4030828c5bf240 Mon Sep 17 00:00:00 2001 From: lnlan Date: Fri, 6 May 2022 08:14:15 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=A4=B1=E8=B4=A5=E9=87=8D?= =?UTF-8?q?=E8=AF=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lnlan --- screenshot/rk_master/capturescreentest.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/screenshot/rk_master/capturescreentest.py b/screenshot/rk_master/capturescreentest.py index 1bcf86d..33be29f 100644 --- a/screenshot/rk_master/capturescreentest.py +++ b/screenshot/rk_master/capturescreentest.py @@ -140,14 +140,17 @@ if __name__ == "__main__": with open(os.path.join(args.save_path, 'shot_test.bat'), mode='a', encoding='utf-8') as cmd_file: cmd_file.write("\n\n::::::case {} --- {} test start \n".format(idx, single_app['app_name'])) cmd_file.close() - if single_app['entry'] != "": - EnterCmd(call_app_cmd, 5) - MyPrint(single_app['all_actions']) testcnt = 2 while testcnt: testok = 0 if testcnt == 1: MyPrint(">>>>>>>>>>>>>>>>>>>>>>>Try again:\n") + with open(os.path.join(args.save_path, 'shot_test.bat'), mode='a', encoding='utf-8') as cmd_file: + cmd_file.write("\n::::::Last failed, Try again \n") + cmd_file.close() + if single_app['entry'] != "": + EnterCmd(call_app_cmd, 5) + MyPrint(single_app['all_actions']) for single_action in single_app['all_actions']: #shot_cmd is stable, different to other cmd,so handle it specialy if type(single_action[1]) == str and single_action[1] == 'shot_cmd': -- Gitee