tests: coverage combine run only if tests succeeded (#2712)

This commit is contained in:
Massimiliano Culpo 2017-01-01 22:05:33 +01:00 committed by Todd Gamblin
parent b9ec69dce1
commit 34d23c617c

View File

@ -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 "$@"