mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
Use luci-go isolate client in mb.py
Bug: chromium:1059167 Change-Id: Idd3a3101ab09e9119bc99baab5a152dbd3ea6197 Reviewers: dpranke@chromium.org, tikuta@chromium.org Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/170520 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Ye Kuang <yekuang@google.com> Cr-Commit-Position: refs/heads/master@{#30796}
This commit is contained in:
parent
1daff27414
commit
b28f0209f9
2 changed files with 9 additions and 12 deletions
|
@ -56,6 +56,8 @@ class MetaBuildWrapper(object):
|
|||
self.configs = {}
|
||||
self.masters = {}
|
||||
self.mixins = {}
|
||||
self.isolate_exe = 'isolate.exe' if self.platform.startswith(
|
||||
'win') else 'isolate'
|
||||
|
||||
def Main(self, args):
|
||||
self.ParseArgs(args)
|
||||
|
@ -337,8 +339,7 @@ class MetaBuildWrapper(object):
|
|||
dimensions += ['-d', k, v]
|
||||
|
||||
cmd = [
|
||||
self.executable,
|
||||
self.PathJoin('tools', 'swarming_client', 'isolate.py'),
|
||||
self.PathJoin(self.src_dir, 'tools', 'luci-go', self.isolate_exe),
|
||||
'archive',
|
||||
'-s',
|
||||
self.ToSrcRelPath('%s/%s.isolated' % (build_dir, target)),
|
||||
|
@ -364,11 +365,10 @@ class MetaBuildWrapper(object):
|
|||
|
||||
def _RunLocallyIsolated(self, build_dir, target):
|
||||
cmd = [
|
||||
self.executable,
|
||||
self.PathJoin('tools', 'swarming_client', 'isolate.py'),
|
||||
self.PathJoin(self.src_dir, 'tools', 'luci-go', self.isolate_exe),
|
||||
'run',
|
||||
'-s',
|
||||
self.ToSrcRelPath('%s/%s.isolated' % (build_dir, target)),
|
||||
'-i',
|
||||
self.ToSrcRelPath('%s/%s.isolate' % (build_dir, target)),
|
||||
]
|
||||
if self.args.extra_args:
|
||||
cmd += ['--'] + self.args.extra_args
|
||||
|
@ -696,13 +696,10 @@ class MetaBuildWrapper(object):
|
|||
extra_files)
|
||||
|
||||
ret, _, _ = self.Run([
|
||||
self.executable,
|
||||
self.PathJoin('tools', 'swarming_client', 'isolate.py'),
|
||||
self.PathJoin(self.src_dir, 'tools', 'luci-go', self.isolate_exe),
|
||||
'check',
|
||||
'-i',
|
||||
self.ToSrcRelPath('%s/%s.isolate' % (build_dir, target)),
|
||||
'-s',
|
||||
self.ToSrcRelPath('%s/%s.isolated' % (build_dir, target))],
|
||||
self.ToSrcRelPath('%s/%s.isolate' % (build_dir, target))],
|
||||
buffer_output=False)
|
||||
|
||||
return ret
|
||||
|
|
|
@ -763,7 +763,7 @@ class UnitTest(unittest.TestCase):
|
|||
}
|
||||
|
||||
def run_stub(cmd, **_kwargs):
|
||||
if 'isolate.py' in cmd[1]:
|
||||
if os.path.join('tools', 'luci-go', 'isolate') in cmd[0]:
|
||||
return 0, 'fake_hash base_unittests', ''
|
||||
else:
|
||||
return 0, '', ''
|
||||
|
|
Loading…
Reference in a new issue