From b5537553f2ec7de70b507936a3abea30b71e2cbf Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Fri, 30 Dec 2016 13:53:30 -0800 Subject: Run coverage for the `spack install` command as well as `spack test`. - Also don't run coverage on OSX. --- share/spack/qa/run-unit-tests | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests index 0728614bc8..9cace0dfd6 100755 --- a/share/spack/qa/run-unit-tests +++ b/share/spack/qa/run-unit-tests @@ -40,12 +40,13 @@ cd "$SPACK_ROOT" source "$SPACK_ROOT/share/spack/setup-env.sh" spack compilers spack config get compilers -spack install -v libdwarf # 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 else + spack install -v libdwarf spack test "$@" fi -- cgit v1.2.3-60-g2f50