| OLD | NEW |
| 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 for test in self.__config['tests']: | 374 for test in self.__config['tests']: |
| 375 cmd = [ | 375 cmd = [ |
| 376 self.package_repo_resource( | 376 self.package_repo_resource( |
| 377 'scripts', 'slave', 'ios', 'run.py'), | 377 'scripts', 'slave', 'ios', 'run.py'), |
| 378 '--app', self.m.path['slave_build'].join( | 378 '--app', self.m.path['slave_build'].join( |
| 379 self.most_recent_app_dir, | 379 self.most_recent_app_dir, |
| 380 '%s.app' % test['app'], | 380 '%s.app' % test['app'], |
| 381 ), | 381 ), |
| 382 '--json_file', self.m.json.output(), | 382 '--json_file', self.m.json.output(), |
| 383 ] | 383 ] |
| 384 if test.get('xctest'): | 384 if test.get('xctest'): # pragma: no cover |
| 385 cmd.extend([ | 385 cmd.extend([ |
| 386 '--test-host', test['app'], | 386 '--test-host', test['app'], |
| 387 '--dummyproj', self.package_repo_resource( | 387 '--dummyproj', self.package_repo_resource( |
| 388 'scripts', 'slave', 'ios', 'TestProject', 'TestProject.xcodeproj'), | 388 'scripts', 'slave', 'ios', 'TestProject', 'TestProject.xcodeproj'), |
| 389 ]) | 389 ]) |
| 390 | 390 |
| 391 step_name = test['app'] | 391 step_name = test['app'] |
| 392 | 392 |
| 393 if self.platform == 'simulator': | 393 if self.platform == 'simulator': |
| 394 cmd.extend([ | 394 cmd.extend([ |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 @property | 814 @property |
| 815 def most_recent_iossim(self): | 815 def most_recent_iossim(self): |
| 816 """Returns the path to the most recently compiled iossim.""" | 816 """Returns the path to the most recently compiled iossim.""" |
| 817 platform = { | 817 platform = { |
| 818 'device': 'iphoneos', | 818 'device': 'iphoneos', |
| 819 'simulator': 'iphonesimulator', | 819 'simulator': 'iphonesimulator', |
| 820 }[self.platform] | 820 }[self.platform] |
| 821 | 821 |
| 822 return self.m.path.join( | 822 return self.m.path.join( |
| 823 'src', 'out', '%s-%s' % (self.configuration, platform), 'iossim') | 823 'src', 'out', '%s-%s' % (self.configuration, platform), 'iossim') |
| OLD | NEW |