Merge "Support lists of files in adb.AndroidDevice.push." am: fccaf17264 am: 0935eedc97

Original change: https://android-review.googlesource.com/c/platform/development/+/1422601

Change-Id: I468d5ccd174708e02d370c4c162934809a904a37
This commit is contained in:
Treehugger Robot
2020-09-11 06:19:05 +00:00
committed by Automerger Merge Worker

View File

@@ -435,7 +435,13 @@ class AndroidDevice(object):
cmd = ['push']
if sync:
cmd.append('--sync')
cmd.extend([local, remote])
if isinstance(local, str):
cmd.extend([local, remote])
else:
cmd.extend(local)
cmd.append(remote)
return self._simple_call(cmd)
def pull(self, remote, local):