diff options
author | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-04-16 10:53:29 +0100 |
---|---|---|
committer | Phil Dawson <phil.dawson@codethink.co.uk> | 2019-04-16 13:11:11 +0100 |
commit | 218a7793090bfa19d8704b4c6cbf944ba8da4d47 (patch) | |
tree | 1c6adeda0ffc35aa6da203cdfb4c89b22b9edff1 /tox.ini | |
parent | 2acfbade27fbd1da21a289cb102a77eaccfc900d (diff) | |
download | buildstream-218a7793090bfa19d8704b4c6cbf944ba8da4d47.tar.gz |
tox.ini Allow movement of coverage files to fail for external tests
If the list of external plugin tests is empty, tox -e pyXX-external
will fail attempting to move a coverage file which doesn't exist.
Allow the offending mv command to fail.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -16,7 +16,8 @@ commands = py{35,36,37}-!external-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc {posargs} py{35,36,37}-!nocover: mkdir -p .coverage-reports external-!nocover: {envpython} {toxinidir}/tests/external_plugins.py {envtmpdir} --cov=buildstream --cov-append {posargs} - py{35,36,37}-!nocover: mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname} + py{35,36,37}-!external-!nocover: mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname} + py{35,36,37}-external-!nocover: - mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname} # Running with coverage reporting disabled py{35,36,37}-!external-nocover: pytest --basetemp {envtmpdir} {posargs} external-nocover: {envpython} {toxinidir}/tests/external_plugins.py {envtmpdir} {posargs} |