diff options
author | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2020-03-05 16:54:29 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2020-03-20 11:38:28 -0700 |
commit | 733f9f8cfa5814cd1df6c34cf7e70f460ce75ff4 (patch) | |
tree | d81d84eb8cdbd121d7a13fd10469c360ba6fd0c3 /share | |
parent | fa0a5e44aa7616bdef4cc825436bfb207c03bf56 (diff) | |
download | spack-733f9f8cfa5814cd1df6c34cf7e70f460ce75ff4.tar.gz spack-733f9f8cfa5814cd1df6c34cf7e70f460ce75ff4.tar.bz2 spack-733f9f8cfa5814cd1df6c34cf7e70f460ce75ff4.tar.xz spack-733f9f8cfa5814cd1df6c34cf7e70f460ce75ff4.zip |
Recover coverage from subprocesses during unit tests (#15354)
* Recover coverage from subprocesses during unit tests
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/qa/run-unit-tests | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests index 52748dacdf..01f564e5e1 100755 --- a/share/spack/qa/run-unit-tests +++ b/share/spack/qa/run-unit-tests @@ -37,16 +37,12 @@ bin/spack -h bin/spack help -a # Profile and print top 20 lines for a simple call to spack spec -bin/spack -p --lines 20 spec mpileaks%gcc ^elfutils@0.170 +spack -p --lines 20 spec mpileaks%gcc ^elfutils@0.170 #----------------------------------------------------------- # Run unit tests with code coverage #----------------------------------------------------------- -extra_args="" -if [[ -n "$@" ]]; then - extra_args="-k $@" -fi -$coverage_run bin/spack test -x --verbose "$extra_args" +$coverage_run $(which spack) test -x --verbose #----------------------------------------------------------- # Run tests for setup-env.sh |