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

Side by Side Diff: scripts/slave/recipe_modules/chromium_android/api.py

Issue 1904493004: Reland #4 of Switch Android gtests to use generated wrapper scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium_android/example.expected/basic_builder_basic.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 contextlib 5 import contextlib
6 import datetime 6 import datetime
7 import json 7 import json
8 import os 8 import os
9 import re 9 import re
10 import urllib 10 import urllib
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 '-w', self.m.path['slave_build']] + args, **kwargs) 901 '-w', self.m.path['slave_build']] + args, **kwargs)
902 902
903 def run_test_suite(self, suite, verbose=True, isolate_file_path=None, 903 def run_test_suite(self, suite, verbose=True, isolate_file_path=None,
904 gtest_filter=None, tool=None, flakiness_dashboard=None, 904 gtest_filter=None, tool=None, flakiness_dashboard=None,
905 name=None, json_results_file=None, shard_timeout=None, 905 name=None, json_results_file=None, shard_timeout=None,
906 args=None, **kwargs): 906 args=None, **kwargs):
907 args = args or [] 907 args = args or []
908 args.extend(['--blacklist-file', self.blacklist_file]) 908 args.extend(['--blacklist-file', self.blacklist_file])
909 if verbose: 909 if verbose:
910 args.append('--verbose') 910 args.append('--verbose')
911 if self.c.BUILD_CONFIG == 'Release': 911 # TODO(agrieve): Remove once no more tests pass isolate_file_path (contained
912 args.append('--release') 912 # in wrapper scripts).
913 if isolate_file_path: 913 if isolate_file_path:
914 args.append('--isolate_file_path=%s' % isolate_file_path) 914 args.append('--isolate_file_path=%s' % isolate_file_path)
915 if gtest_filter: 915 if gtest_filter:
916 args.append('--gtest_filter=%s' % gtest_filter) 916 args.append('--gtest_filter=%s' % gtest_filter)
917 if tool: 917 if tool:
918 args.append('--tool=%s' % tool) 918 args.append('--tool=%s' % tool)
919 if flakiness_dashboard: 919 if flakiness_dashboard:
920 args.append('--flakiness-dashboard-server=%s' % 920 args.append('--flakiness-dashboard-server=%s' %
921 flakiness_dashboard) 921 flakiness_dashboard)
922 if json_results_file: 922 if json_results_file:
923 args.extend(['--json-results-file', json_results_file]) 923 args.extend(['--json-results-file', json_results_file])
924 # TODO(agrieve): Remove once no more tests pass shard_timeout (contained in
925 # wrapper scripts).
924 if shard_timeout: 926 if shard_timeout:
925 args.extend(['-t', str(shard_timeout)]) 927 args.extend(['-t', str(shard_timeout)])
926 self.test_runner( 928 self.test_runner(
927 name or str(suite), 929 name or str(suite),
928 ['gtest', '-s', suite] + args, 930 args=args,
931 wrapper_script_suite_name=suite,
929 env=self.m.chromium.get_env(), 932 env=self.m.chromium.get_env(),
930 **kwargs) 933 **kwargs)
931 934
932 def run_java_unit_test_suite(self, suite, verbose=True, 935 def run_java_unit_test_suite(self, suite, verbose=True,
933 json_results_file=None, suffix=None, **kwargs): 936 json_results_file=None, suffix=None, **kwargs):
934 args = [] 937 args = []
935 if verbose: 938 if verbose:
936 args.append('--verbose') 939 args.append('--verbose')
937 if self.c.BUILD_CONFIG == 'Release': 940 if self.c.BUILD_CONFIG == 'Release':
938 args.append('--release') 941 args.append('--release')
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 script = self.c.test_runner 1255 script = self.c.test_runner
1253 if wrapper_script_suite_name: 1256 if wrapper_script_suite_name:
1254 script = self.m.chromium.output_dir.join('bin', 'run_%s' % 1257 script = self.m.chromium.output_dir.join('bin', 'run_%s' %
1255 wrapper_script_suite_name) 1258 wrapper_script_suite_name)
1256 else: 1259 else:
1257 env = kwargs.get('env', {}) 1260 env = kwargs.get('env', {})
1258 env['CHROMIUM_OUTPUT_DIR'] = env.get('CHROMIUM_OUTPUT_DIR', 1261 env['CHROMIUM_OUTPUT_DIR'] = env.get('CHROMIUM_OUTPUT_DIR',
1259 self.m.chromium.output_dir) 1262 self.m.chromium.output_dir)
1260 kwargs['env'] = env 1263 kwargs['env'] = env
1261 return self.m.python(step_name, script, args, **kwargs) 1264 return self.m.python(step_name, script, args, **kwargs)
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium_android/example.expected/basic_builder_basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698