Skip to content

Commit

Permalink
Merge pull request #3 from enkiller/master
Browse files Browse the repository at this point in the history
【修复】 同步脚步运行错误
  • Loading branch information
heyuanjie87 authored Mar 1, 2019
2 parents 3bcceef + 68f35e6 commit d38ef6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/script/adb_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit d38ef6f

Please sign in to comment.