summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-12-16 10:56:54 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2019-12-23 23:48:03 -0800
commit8616a264063de99087bf4f1204d598ff2462f1d4 (patch)
treeb4720558efaf88f14144ba68aea9df4714afeac4
parente22d3250dd78eac769906620da55594690fbbca7 (diff)
downloadspack-8616a264063de99087bf4f1204d598ff2462f1d4.tar.gz
spack-8616a264063de99087bf4f1204d598ff2462f1d4.tar.bz2
spack-8616a264063de99087bf4f1204d598ff2462f1d4.tar.xz
spack-8616a264063de99087bf4f1204d598ff2462f1d4.zip
Travis exits at the first failing test, pin codecov at v4.5.4 (#14179)
Before this commit we used to run the entire unit test suite in the presence of a failure. Since we currently rely a lot on the state of the filesystem etc. the end report was most of the time showing spurious failures that were a consequence of the first failing test. This PR makes unit tests exit at the first failing test Also, pin codecov at v4.5.4 (last one supporting Python 2.6)
-rw-r--r--.travis.yml2
-rwxr-xr-xshare/spack/qa/run-unit-tests2
2 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index f8f0778cae..c9d442ee8e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -177,7 +177,7 @@ install:
- pip install --upgrade pip
- pip install --upgrade six
- pip install --upgrade setuptools
- - pip install --upgrade codecov
+ - pip install --upgrade codecov coverage==4.5.4
- pip install --upgrade flake8
- pip install --upgrade pep8-naming
- if [[ "$TEST_SUITE" == "doc" ]]; then
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests
index 4403d53a76..11f3ac1fcb 100755
--- a/share/spack/qa/run-unit-tests
+++ b/share/spack/qa/run-unit-tests
@@ -46,7 +46,7 @@ extra_args=""
if [[ -n "$@" ]]; then
extra_args="-k $@"
fi
-${coverage_run} bin/spack test --verbose "$extra_args"
+${coverage_run} bin/spack test -x --verbose "$extra_args"
#-----------------------------------------------------------
# Run tests for setup-env.sh