Commit 96ec0694 authored by tonyg@chromium.org's avatar tonyg@chromium.org

Don't push md5sum every time it is used.

This improves bot cycle time.

BUG=379378

Review URL: https://codereview.chromium.org/308793009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274795 0039d316-1c4b-4281-b951-d872f2087c98
parent 2f40485f
...@@ -982,8 +982,12 @@ class AndroidCommands(object): ...@@ -982,8 +982,12 @@ class AndroidCommands(object):
md5sum_dist_path = os.path.join(constants.GetOutDirectory(), md5sum_dist_path = os.path.join(constants.GetOutDirectory(),
'md5sum_dist') 'md5sum_dist')
assert os.path.exists(md5sum_dist_path), 'Please build md5sum.' assert os.path.exists(md5sum_dist_path), 'Please build md5sum.'
md5sum_dist_mtime = os.stat(md5sum_dist_path).st_mtime
if (md5sum_dist_path not in self._push_if_needed_cache or
self._push_if_needed_cache[md5sum_dist_path] != md5sum_dist_mtime):
command = 'push %s %s' % (md5sum_dist_path, MD5SUM_DEVICE_FOLDER) command = 'push %s %s' % (md5sum_dist_path, MD5SUM_DEVICE_FOLDER)
assert _HasAdbPushSucceeded(self._adb.SendCommand(command)) assert _HasAdbPushSucceeded(self._adb.SendCommand(command))
self._push_if_needed_cache[md5sum_dist_path] = md5sum_dist_mtime
(_, md5_device_output) = self.GetAndroidToolStatusAndOutput( (_, md5_device_output) = self.GetAndroidToolStatusAndOutput(
self._util_wrapper + ' ' + MD5SUM_DEVICE_PATH + ' ' + device_path, self._util_wrapper + ' ' + MD5SUM_DEVICE_PATH + ' ' + device_path,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment