From 8616a264063de99087bf4f1204d598ff2462f1d4 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Mon, 16 Dec 2019 10:56:54 +0100 Subject: 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) --- .travis.yml | 2 +- share/spack/qa/run-unit-tests | 2 +- 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 -- cgit v1.2.3-60-g2f50