Skip to content
Snippets Groups Projects
Commit 596d4637 authored by Massimiliano Culpo's avatar Massimiliano Culpo Committed by Adam J. Stewart
Browse files

Travis: use --concurrency=multiprocessing only on build tests (#6872)

On a local workstation, it seems that tracking multiple processes during
coverage may result in malformed coverage reports for unit tests and not
for build tests.

Given that multiple processes make a difference in coverage mainly for
build tests, try to disable the tracking for unit tests to see if we get
more stable coverage results.
parent d17a10c6
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# .coveragerc to control coverage.py # .coveragerc to control coverage.py
[run] [run]
parallel = True parallel = True
concurrency = multiprocessing
branch = True branch = True
source = lib source = lib
omit = omit =
......
...@@ -11,10 +11,14 @@ SPACK_ROOT="$QA_DIR/../../.." ...@@ -11,10 +11,14 @@ SPACK_ROOT="$QA_DIR/../../.."
. "$SPACK_ROOT/share/spack/setup-env.sh" . "$SPACK_ROOT/share/spack/setup-env.sh"
# Set up some variables for running coverage tests. # Set up some variables for running coverage tests.
if [[ "$COVERAGE" == true ]]; then if [[ "$COVERAGE" == "true" && "$TEST_SUITE" == "unit" ]]; then
coverage=coverage coverage=coverage
coverage_run="coverage run" coverage_run="coverage run"
coverage_combine="coverage combine" coverage_combine="coverage combine"
elif [[ "$COVERAGE" == "true" && "$TEST_SUITE" == "build" ]]; then
coverage=coverage
coverage_run="coverage run --concurrency=multiprocessing"
coverage_combine="coverage combine"
else else
coverage="" coverage=""
coverage_run="" coverage_run=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment