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

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

Issue 2206633002: Set UNbufferIO env for Earlgrey tests outputs. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/tools/build into crash 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 2c85c972e112b5b81a586d12fbde3bb87e6aac7b..5618555fb33e4a0886341c71bcf247181ab00428 100755
--- a/scripts/slave/ios/test_runner.py
+++ b/scripts/slave/ios/test_runner.py
@@ -858,7 +858,8 @@ class XCTestRunner(TestRunner):
"""Returns the environment which is used to run the xctest.
"""
env = dict(os.environ, APP_TARGET_NAME=self.test_host_name,
- TEST_TARGET_NAME=self.test_target_name)
+ TEST_TARGET_NAME=self.test_target_name,
+ NSUnbufferedIO='YES')
return env
def GetLaunchCommand(self, test_filter=None, blacklist=False):
@@ -1266,15 +1267,18 @@ class SimulatorXCTestRunner(XCTestRunner):
"""
built_dir = os.path.split(self.app_path)[0]
- cmd = ['xcodebuild', 'test',
- '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]
+ cmd = [
+ 'xcodebuild', 'test',
+ '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
@@ -1425,15 +1429,18 @@ class DeviceXCTestRunner(XCTestRunner):
"""
built_dir = os.path.split(self.app_path)[0]
- cmd = ['xcodebuild', 'test-without-building',
- 'BUILT_PRODUCTS_DIR=%s' % built_dir,
- 'CONFIGURATION_BUILD_DIR=%s' % built_dir,
- '-project', self.test_project_dir,
- '-configuration', 'iphoneos',
- '-scheme', 'TestProject',
- '-destination','id=%s' % self.device_id,
- 'APP_TARGET_NAME=%s' % self.test_host_name,
- 'TEST_TARGET_NAME=%s' % self.test_target_name]
+ cmd = [
+ 'xcodebuild', 'test-without-building',
+ 'BUILT_PRODUCTS_DIR=%s' % built_dir,
+ 'CONFIGURATION_BUILD_DIR=%s' % built_dir,
+ '-project', self.test_project_dir,
+ '-configuration', 'iphoneos',
+ '-scheme', 'TestProject',
+ '-destination','id=%s' % self.device_id,
+ '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