diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2017-01-01 22:05:33 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-01-01 13:05:33 -0800 |
commit | 34d23c617c89861e0d4ee1aad6a0acf1892502df (patch) | |
tree | 32e07410d9cf7e208f9b9d4a8a5f1c4a24339e2e | |
parent | b9ec69dce15c69ba11f6d637614399b3a3a470e5 (diff) | |
download | spack-34d23c617c89861e0d4ee1aad6a0acf1892502df.tar.gz spack-34d23c617c89861e0d4ee1aad6a0acf1892502df.tar.bz2 spack-34d23c617c89861e0d4ee1aad6a0acf1892502df.tar.xz spack-34d23c617c89861e0d4ee1aad6a0acf1892502df.zip |
tests: `coverage combine` run only if tests succeeded (#2712)
-rwxr-xr-x | share/spack/qa/run-unit-tests | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests index 9cace0dfd6..d2ce9647af 100755 --- a/share/spack/qa/run-unit-tests +++ b/share/spack/qa/run-unit-tests @@ -44,8 +44,7 @@ spack config get compilers # Run unit tests with code coverage if [[ "$TRAVIS_PYTHON_VERSION" == 2.7 ]]; then coverage run bin/spack install -v libdwarf - coverage run bin/spack test "$@" - coverage combine + coverage run bin/spack test "$@" && coverage combine else spack install -v libdwarf spack test "$@" |