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

Unified Diff: scripts/slave/ios/test_runner.py

Issue 2244053002: Add command to run earlgrey tests upstream. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/ios/test_runner.py
diff --git a/scripts/slave/ios/test_runner.py b/scripts/slave/ios/test_runner.py
index 8952d2daaca2237e44f22104a5edeedb8fcad557..bc4a33b9e202a1d335694c289f72465230097710 100755
--- a/scripts/slave/ios/test_runner.py
+++ b/scripts/slave/ios/test_runner.py
@@ -1275,13 +1275,29 @@ class SimulatorXCTestRunner(XCTestRunner):
xctests_fullname = self.test_target_name + '.xctest'
xctest_path = os.path.join(app_path, 'PlugIns', xctests_fullname)
- cmd = [
- os.path.join(built_dir, 'iossim'),
- '-d', self.platform,
- '-s', self.version,
- app_path,
- xctest_path
- ]
+ cmd=''
smut 2016/08/12 23:45:35 You don't need this initialization since you defin
+ if self.xcode_version == '8.0':
+ cmd = [
+ os.path.join(built_dir, 'iossim'),
+ '-d', self.platform,
+ '-s', self.version,
+ app_path,
+ xctest_path
+ ]
+ else:
+ cmd = [
+ 'xcodebuild', 'test-without-building',
+ 'BUILT_PRODUCTS_DIR=%s' % built_dir,
+ '-project', self.test_project_dir,
+ '-scheme','TestProject',
+ '-destination','platform=iOS Simulator,name=%s,OS=%s'
+ % (self.platform, self.version),
+ '-archivePath', self.homedir,
+ 'APP_TARGET_NAME=%s' % self.test_host_name,
+ 'TEST_TARGET_NAME=%s' % self.test_target_name,
+ 'NSUnbufferedIO=YES'
+ ]
+
return cmd
@TestRunner.RequireTearDown
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698