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

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

Issue 1917243002: Revert "build: roll infra_paths changes" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import copy 5 import copy
6 6
7 from recipe_engine import recipe_api 7 from recipe_engine import recipe_api
8 8
9 9
10 class iOSApi(recipe_api.RecipeApi): 10 class iOSApi(recipe_api.RecipeApi):
(...skipping 15 matching lines...) Expand all
26 step_result.json.output['Xcode Version'], 26 step_result.json.output['Xcode Version'],
27 step_result.json.output['Xcode Build Version'], 27 step_result.json.output['Xcode Build Version'],
28 ) 28 )
29 return step_result 29 return step_result
30 30
31 def checkout(self, **kwargs): 31 def checkout(self, **kwargs):
32 """Checks out Chromium.""" 32 """Checks out Chromium."""
33 kwargs.setdefault('force', True) 33 kwargs.setdefault('force', True)
34 self.m.gclient.set_config('ios') 34 self.m.gclient.set_config('ios')
35 update_step = self.m.bot_update.ensure_checkout(**kwargs) 35 update_step = self.m.bot_update.ensure_checkout(**kwargs)
36 self.m.path['checkout'] = self.m.infra_paths['slave_build'].join('src') 36 self.m.path['checkout'] = self.m.path['slave_build'].join('src')
37 return update_step 37 return update_step
38 38
39 @property 39 @property
40 def compiler(self): 40 def compiler(self):
41 assert self.__config is not None 41 assert self.__config is not None
42 return self.__config['compiler'] 42 return self.__config['compiler']
43 43
44 @property 44 @property
45 def configuration(self): 45 def configuration(self):
46 assert self.__config is not None 46 assert self.__config is not None
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 *args: Any additional arguments to pass to the test harness. 355 *args: Any additional arguments to pass to the test harness.
356 """ 356 """
357 assert self.__config is not None 357 assert self.__config is not None
358 test_failures = [] 358 test_failures = []
359 infrastructure_failures = [] 359 infrastructure_failures = []
360 360
361 for test in self.__config['tests']: 361 for test in self.__config['tests']:
362 cmd = [ 362 cmd = [
363 self.package_repo_resource( 363 self.package_repo_resource(
364 'scripts', 'slave', 'ios', 'run.py'), 364 'scripts', 'slave', 'ios', 'run.py'),
365 '--app', self.m.infra_paths['slave_build'].join( 365 '--app', self.m.path['slave_build'].join(
366 self.most_recent_app_dir, 366 self.most_recent_app_dir,
367 '%s.app' % test['app'], 367 '%s.app' % test['app'],
368 ), 368 ),
369 '--json_file', self.m.json.output(), 369 '--json_file', self.m.json.output(),
370 ] 370 ]
371 371
372 step_name = test['app'] 372 step_name = test['app']
373 373
374 if self.platform == 'simulator': 374 if self.platform == 'simulator':
375 cmd.extend([ 375 cmd.extend([
376 '--iossim', self.m.infra_paths['slave_build'].join(self.most_recent_io ssim), 376 '--iossim', self.m.path['slave_build'].join(self.most_recent_iossim),
377 '--platform', test['device type'], 377 '--platform', test['device type'],
378 '--version', test['os'], 378 '--version', test['os'],
379 ]) 379 ])
380 380
381 # Since we may be running simulator tests on multiple platforms, 381 # Since we may be running simulator tests on multiple platforms,
382 # include the platform and OS in the name of the step. 382 # include the platform and OS in the name of the step.
383 step_name = '%s (%s iOS %s)' % ( 383 step_name = '%s (%s iOS %s)' % (
384 test['app'], 384 test['app'],
385 test['device type'], 385 test['device type'],
386 test['os'], 386 test['os'],
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 self.configuration, 487 self.configuration,
488 'iossim', 488 'iossim',
489 ), 489 ),
490 'ninja': self.m.path.join( 490 'ninja': self.m.path.join(
491 'src', 491 'src',
492 build_dir, 492 build_dir,
493 '%s-%s' % (self.configuration, platform), 493 '%s-%s' % (self.configuration, platform),
494 'iossim', 494 'iossim',
495 ), 495 ),
496 }[self.compiler] 496 }[self.compiler]
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/ios/__init__.py ('k') | scripts/slave/recipe_modules/ios/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698