summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorPhil Dawson <phil.dawson@codethink.co.uk>2019-04-16 10:53:29 +0100
committerPhil Dawson <phil.dawson@codethink.co.uk>2019-04-16 13:11:11 +0100
commit218a7793090bfa19d8704b4c6cbf944ba8da4d47 (patch)
tree1c6adeda0ffc35aa6da203cdfb4c89b22b9edff1 /tox.ini
parent2acfbade27fbd1da21a289cb102a77eaccfc900d (diff)
downloadbuildstream-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.ini3
1 files changed, 2 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 82e0f13ee..c083ef58e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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}