Skip to content

Commit

Permalink
Skip OjbC when running code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelez committed Nov 21, 2015
1 parent 201d6e1 commit 6b9527c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tools/run_tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,15 @@ def runs_per_test_type(arg_str):
if args.travis:
_FORCE_ENVIRON_FOR_WRAPPERS = {'GRPC_TRACE': 'api'}

languages = set(_LANGUAGES[l]
for l in itertools.chain.from_iterable(
_LANGUAGES.iterkeys() if x == 'all' else [x]
for x in args.language))
if 'all' in args.language:
lang_list = _LANGUAGES.keys()
else:
lang_list = args.language
# We don't support code coverage on ObjC
if 'gcov' in args.config and 'objc' in lang_list:
lang_list.remove('objc')

languages = set(_LANGUAGES[l] for l in lang_list)

if len(build_configs) > 1:
for language in languages:
Expand Down Expand Up @@ -840,6 +845,7 @@ def _calculate_num_runs_failures(list_of_results):
num_failures += jobresult.num_failures
return num_runs, num_failures


def _build_and_run(
check_cancelled, newline_on_success, cache, xml_report=None):
"""Do one pass of building & running tests."""
Expand Down

0 comments on commit 6b9527c

Please sign in to comment.