[android] Do not rm test dependencies when doing a full directory push in PushIfNeeded.
BUG=None TEST=None NOTRY=True Review URL: https://chromiumcodereview.appspot.com/24200010 git-svn-id: http://src.chromium.org/svn/trunk/src/build@224724 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
e3b0589183
Коммит
da6e3d16a5
|
@ -899,10 +899,8 @@ class AndroidCommands(object):
|
|||
# TODO(craigdh): Replace this educated guess with a heuristic that
|
||||
# approximates the push time for each method.
|
||||
if len(changed_files) > MAX_INDIVIDUAL_PUSHES or diff_size > 0.5 * size:
|
||||
# We're pushing everything, remove everything first and then create it.
|
||||
self._actual_push_size += size
|
||||
if os.path.isdir(host_path):
|
||||
self.RunShellCommand('rm -r %s' % device_path, timeout_time=2 * 60)
|
||||
self.RunShellCommand('mkdir -p %s' % device_path)
|
||||
Push(host_path, device_path)
|
||||
else:
|
||||
|
|
Загрузка…
Ссылка в новой задаче