summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-02-25 11:28:19 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-02-25 11:28:19 +0000
commit50522105e5211780f54582e9f0e226f51470e113 (patch)
tree18518c53c28f36680716b90d1947f81517f5472a
parentc8c598b1d63b6a3ab1b14d2b181d47498100bf21 (diff)
downloadbuildstream-50522105e5211780f54582e9f0e226f51470e113.tar.gz
Make code coverage reporting optionalbschubert/allow-no-cov
Previously, without a coverage file, the tests would fail if combined with "--no-cov". This makes the coverage reporting optional and allows the usage of "--no-cov"
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index dbbbf8880..97de44602 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,8 +13,8 @@ skip_missing_interpreters = true
[testenv]
commands =
pytest --basetemp {envtmpdir} {posargs}
- mkdir -p .coverage-reports
- mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname}
+ - mkdir -p .coverage-reports
+ - mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname}
deps =
-rrequirements/requirements.txt
-rrequirements/dev-requirements.txt