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

Unified Diff: ios/build/bots/scripts/run.py

Issue 2437953002: Support xctests on simulators (Closed)
Patch Set: Fix Created 4 years, 2 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 | « ios/build/bots/scripts/gtest_utils.py ('k') | ios/build/bots/scripts/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/build/bots/scripts/run.py
diff --git a/ios/build/bots/scripts/run.py b/ios/build/bots/scripts/run.py
index 9f259180eec6a759b9e6994ae7bf04144da90de6..2e968c7ec38a73fcd1258188a13719e9dabe2ee0 100755
--- a/ios/build/bots/scripts/run.py
+++ b/ios/build/bots/scripts/run.py
@@ -43,6 +43,7 @@ def main(args, test_args):
args.out_dir,
env_vars=args.env_var,
test_args=test_args,
+ xctest=args.xctest,
)
else:
tr = test_runner.DeviceTestRunner(
@@ -127,6 +128,11 @@ if __name__ == '__main__':
metavar='ver',
required=True,
)
+ parser.add_argument(
+ '--xctest',
+ action='store_true',
+ help='Whether or not the given app should be run as an XCTest.',
+ )
args, test_args = parser.parse_known_args()
if args.iossim or args.platform or args.version:
@@ -139,6 +145,7 @@ if __name__ == '__main__':
args_json = json.loads(args.args_json)
args.env_var = args.env_var or []
args.env_var.extend(args_json.get('env_var', []))
+ args.xctest = args_json.get('xctest', args.xctest)
test_args.extend(args_json.get('test_args', []))
sys.exit(main(args, test_args))
« no previous file with comments | « ios/build/bots/scripts/gtest_utils.py ('k') | ios/build/bots/scripts/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698