tests: coverage combine
run only if tests succeeded (#2712)
This commit is contained in:
parent
b9ec69dce1
commit
34d23c617c
@ -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 "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user