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

Side by Side Diff: ios/build/bots/scripts/test_runner.py

Issue 2473103006: Rename XCTests test main target and output. (Closed)
Patch Set: Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 """Test runners for iOS.""" 5 """Test runners for iOS."""
6 6
7 import argparse 7 import argparse
8 import collections 8 import collections
9 import errno 9 import errno
10 import os 10 import os
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 return cmd 675 return cmd
676 676
677 def get_launch_env(self): 677 def get_launch_env(self):
678 """Returns a dict of environment variables to use to launch the test app. 678 """Returns a dict of environment variables to use to launch the test app.
679 679
680 Returns: 680 Returns:
681 A dict of environment variables. 681 A dict of environment variables.
682 """ 682 """
683 env = super(DeviceTestRunner, self).get_launch_env() 683 env = super(DeviceTestRunner, self).get_launch_env()
684 if self.xctest_path: 684 if self.xctest_path:
685 # e.g. ios_web_shell_test_host
686 env['APP_TARGET_NAME'] = (
687 os.path.splitext(os.path.basename(self.app_path))[0])
688 # e.g. ios_web_shell_test 685 # e.g. ios_web_shell_test
689 env['TEST_TARGET_NAME'] = env['APP_TARGET_NAME'].rsplit('_', 1)[0] 686 env['APP_TARGET_NAME'] = os.path.splitext(
687 os.path.basename(self.app_path))[0]
688 # e.g. ios_web_shell_test_module
689 env['TEST_TARGET_NAME'] = env['APP_TARGET_NAME'] + '_module'
690 return env 690 return env
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698