diff --git a/tools_webrtc/mb/mb.py b/tools_webrtc/mb/mb.py index f3e644128a..82077baaae 100755 --- a/tools_webrtc/mb/mb.py +++ b/tools_webrtc/mb/mb.py @@ -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 diff --git a/tools_webrtc/mb/mb_unittest.py b/tools_webrtc/mb/mb_unittest.py index 3ae386986b..afbc1acf08 100755 --- a/tools_webrtc/mb/mb_unittest.py +++ b/tools_webrtc/mb/mb_unittest.py @@ -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, '', ''