diff --git a/screenshot/rk_master/capturescreentest.py b/screenshot/rk_master/capturescreentest.py index 238965a808d78b8a314ce0147637b9331cabee47..186c48dc444fafce84ceb3d6951a6c6c2f97f829 100644 --- a/screenshot/rk_master/capturescreentest.py +++ b/screenshot/rk_master/capturescreentest.py @@ -179,7 +179,8 @@ if __name__ == "__main__": else: tolerance = global_pos['cmp_cmd-level'][1] p = EnterCmd(new_cmp_cmd, single_action[0]) - num = re.findall(r'[-+]?\d+', p[0]) + num = re.findall(r'[-+]?\d+', p) + MyPrint(num) if type(num) == list and len(num) > 0 and int(num[0]) < tolerance: testok = 1 MyPrint("{} screenshot check is ok!\n\n".format(raw_pic_name))