Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: scripts/slave/recipe_modules/webrtc/api.py

Issue 2226283002: webrtc: prepare for running under remote_run (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from recipe_engine.types import freeze 5 from recipe_engine.types import freeze
6 from recipe_engine import recipe_api 6 from recipe_engine import recipe_api
7 from . import builders 7 from . import builders
8 from . import steps 8 from . import steps
9 9
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 self.m.chromium_swarming.configure_swarming( 137 self.m.chromium_swarming.configure_swarming(
138 'webrtc', 138 'webrtc',
139 precommit=self.m.tryserver.is_tryserver, 139 precommit=self.m.tryserver.is_tryserver,
140 mastername=mastername) 140 mastername=mastername)
141 self.m.swarming.set_default_dimension( 141 self.m.swarming.set_default_dimension(
142 'os', 142 'os',
143 self.m.swarming.prefered_os_dimension( 143 self.m.swarming.prefered_os_dimension(
144 self.m.platform.name).split('-', 1)[0]) 144 self.m.platform.name).split('-', 1)[0])
145 145
146 def checkout(self, **kwargs): 146 def checkout(self, **kwargs):
147 checkout_dir = self.m.chromium_tests.get_checkout_dir({})
148 if checkout_dir:
149 kwargs.setdefault('cwd', checkout_dir)
150
147 update_step = self.m.bot_update.ensure_checkout(**kwargs) 151 update_step = self.m.bot_update.ensure_checkout(**kwargs)
148 assert update_step.json.output['did_run'] 152 assert update_step.json.output['did_run']
149 153
150 # Whatever step is run right before this line needs to emit got_revision. 154 # Whatever step is run right before this line needs to emit got_revision.
151 revs = update_step.presentation.properties 155 revs = update_step.presentation.properties
152 self.revision = revs['got_revision'] 156 self.revision = revs['got_revision']
153 self.revision_cp = revs['got_revision_cp'] 157 self.revision_cp = revs['got_revision_cp']
154 self.revision_number = str(self.m.commit_position.parse_revision( 158 self.revision_number = str(self.m.commit_position.parse_revision(
155 self.revision_cp)) 159 self.revision_cp))
156 160
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 def clean_test_output(self): 301 def clean_test_output(self):
298 """Remove all test output in out/, since we have tests leaking files.""" 302 """Remove all test output in out/, since we have tests leaking files."""
299 out_dir = self.m.path['checkout'].join('out') 303 out_dir = self.m.path['checkout'].join('out')
300 self.m.python('clean test output files', 304 self.m.python('clean test output files',
301 script=self.resource('cleanup_files.py'), 305 script=self.resource('cleanup_files.py'),
302 args=[out_dir], 306 args=[out_dir],
303 infra_step=True) 307 infra_step=True)
304 308
305 def virtual_webcam_check(self): 309 def virtual_webcam_check(self):
306 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py')) 310 self.m.python('webcam_check', self.resource('ensure_webcam_is_running.py'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698