diff --git a/.coveragerc b/.coveragerc index 224c472fa2ef92af5c7deeed2b696f0df51e1e35..0201a4b502d9238026305a1982a8f4a75d8df977 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,6 +2,7 @@ # .coveragerc to control coverage.py [run] parallel = True +concurrency = multiprocessing branch = True source = lib omit = diff --git a/share/spack/qa/run-build-tests b/share/spack/qa/run-build-tests index 7539a913131cc78a6718299b441e53c31fef3ce5..56aa51542ed444d65fd3e2730cebc7bb4b70b3d2 100755 --- a/share/spack/qa/run-build-tests +++ b/share/spack/qa/run-build-tests @@ -26,4 +26,3 @@ spack config get compilers # Run some build smoke tests, potentially with code coverage ${coverage_run} bin/spack install ${SPEC} -${coverage_combine} diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests index 87203ba915d42c962e877b72adec58871a3d44d3..74f92c19c5bbc2c9d34e31c8a566ff8901ec5362 100755 --- a/share/spack/qa/run-unit-tests +++ b/share/spack/qa/run-unit-tests @@ -29,4 +29,3 @@ ${coverage_run} bin/spack -p --lines 20 spec mpileaks # Run unit tests with code coverage ${coverage_run} bin/spack test "$@" -${coverage_combine} diff --git a/share/spack/qa/setup.sh b/share/spack/qa/setup.sh index 4b3f98e330b4dbbbaaa708096ce75ab7e0e9831d..031554a03526895b48e41422095a023634fbf2f8 100755 --- a/share/spack/qa/setup.sh +++ b/share/spack/qa/setup.sh @@ -11,18 +11,12 @@ SPACK_ROOT="$QA_DIR/../../.." . "$SPACK_ROOT/share/spack/setup-env.sh" # Set up some variables for running coverage tests. -if [[ "$COVERAGE" == "true" && "$TEST_SUITE" == "unit" ]]; then +if [[ "$COVERAGE" == true ]]; then coverage=coverage coverage_run="coverage run" - coverage_combine="coverage combine" -elif [[ "$COVERAGE" == "true" && "$TEST_SUITE" == "build" ]]; then - coverage=coverage - coverage_run="coverage run --concurrency=multiprocessing" - coverage_combine="coverage combine" else coverage="" coverage_run="" - coverage_combine="" fi #