diff options
Diffstat (limited to 'share/spack/qa/setup.sh')
-rwxr-xr-x | share/spack/qa/setup.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/share/spack/qa/setup.sh b/share/spack/qa/setup.sh index f6132c3ec9..6256269211 100755 --- a/share/spack/qa/setup.sh +++ b/share/spack/qa/setup.sh @@ -16,8 +16,12 @@ export SPACK_ROOT=$(realpath "$QA_DIR/../../..") # Source the setup script . "$SPACK_ROOT/share/spack/setup-env.sh" +# by default coverage is off. +coverage="" +coverage_run="" + # Set up some variables for running coverage tests. -if [[ "$TEST_SUITE" == "unit" || "$TEST_SUITE" == "build" ]]; then +if [[ "$COVERAGE" == "true" ]]; then # these set up coverage for Python coverage=coverage coverage_run="coverage run" @@ -33,9 +37,6 @@ if [[ "$TEST_SUITE" == "unit" || "$TEST_SUITE" == "build" ]]; then bashcov=$(realpath ${QA_DIR}/bashcov) sed -i~ "s@#\!/bin/bash@#\!${bashcov}@" "$cc_script" fi -else - coverage="" - coverage_run="" fi # |