Skip to content

Commit

Permalink
Merge pull request grpc#4464 from jtattermusch/coverage_in_debug
Browse files Browse the repository at this point in the history
Polishing run_tests.py
  • Loading branch information
adelez committed Dec 17, 2015
2 parents 62ae50d + 68016a1 commit 788767a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
7 changes: 0 additions & 7 deletions tools/run_tests/build_csharp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@

set -ex

if [ "$CONFIG" = "dbg" ]
then
MSBUILD_CONFIG="Debug"
else
MSBUILD_CONFIG="Release"
fi

cd $(dirname $0)/../../src/csharp

xbuild /p:Configuration=$MSBUILD_CONFIG Grpc.sln
15 changes: 11 additions & 4 deletions tools/run_tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def __str__(self):
_WINDOWS_CONFIG = {
'dbg': 'Debug',
'opt': 'Release',
'gcov': 'Release',
'gcov': 'Debug',
}


Expand Down Expand Up @@ -749,22 +749,29 @@ def make_jobspec(cfg, targets, makefile='Makefile'):
make_targets[makefile] = make_targets.get(makefile, set()).union(
set(l.make_targets(args.regex)))

def build_step_environ(cfg):
environ = {'CONFIG': cfg}
msbuild_cfg = _WINDOWS_CONFIG.get(cfg)
if msbuild_cfg:
environ['MSBUILD_CONFIG'] = msbuild_cfg
return environ

build_steps = list(set(
jobset.JobSpec(cmdline, environ={'CONFIG': cfg}, flake_retries=5)
jobset.JobSpec(cmdline, environ=build_step_environ(cfg), flake_retries=5)
for cfg in build_configs
for l in languages
for cmdline in l.pre_build_steps()))
if make_targets:
make_commands = itertools.chain.from_iterable(make_jobspec(cfg, list(targets), makefile) for cfg in build_configs for (makefile, targets) in make_targets.iteritems())
build_steps.extend(set(make_commands))
build_steps.extend(set(
jobset.JobSpec(cmdline, environ={'CONFIG': cfg}, timeout_seconds=10*60)
jobset.JobSpec(cmdline, environ=build_step_environ(cfg), timeout_seconds=10*60)
for cfg in build_configs
for l in languages
for cmdline in l.build_steps()))

post_tests_steps = list(set(
jobset.JobSpec(cmdline, environ={'CONFIG': cfg})
jobset.JobSpec(cmdline, environ=build_step_environ(cfg))
for cfg in build_configs
for l in languages
for cmdline in l.post_tests_steps()))
Expand Down

0 comments on commit 788767a

Please sign in to comment.