From 68f35e63131775669313cc1d19685e38e92397ce Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Fri, 1 Mar 2019 15:45:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=20?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=84=9A=E6=AD=A5=E8=BF=90=E8=A1=8C=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/script/adb_sync.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/script/adb_sync.py b/tools/script/adb_sync.py index a9b5f66..c562be2 100644 --- a/tools/script/adb_sync.py +++ b/tools/script/adb_sync.py @@ -107,6 +107,7 @@ def dev_file_delete(path, delete_list): def dev_file_delete_(path, delete_list): success_list = [] failure_list = [] + result = {} for item in delete_list: buff = [] buff.append(item) @@ -123,6 +124,7 @@ def dev_file_delete_(path, delete_list): failure_list.append(item) result['success'] = success_list result['failure'] = failure_list + return result def dev_file_sync(sync_list): return adb_push_file(loacl_path, remote_path, sync_list, adb_path = adb_exec_path, serial_number = adb_serial_number) @@ -234,7 +236,7 @@ def user_parameter_parsing(args): pc_list.append(item[name]) all_count = len(list_filtration_folders(sync_info['sync'])) delt_count = len(list_filtration_folders(sync_info['delete'])) - fail_count = len(sync_try_res['failure']) + fail_count = len(sync_try_res['failure']) if sync_try_res else 0 sync_count = all_count - fail_count skip_count = len(list_filtration_folders(pc_list)) - sync_count endtime = time.time()