]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/dashboard: hardcode .coverage path to workaround tox bugs
authorKefu Chai <kchai@redhat.com>
Wed, 18 Apr 2018 05:42:03 +0000 (13:42 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 18 Apr 2018 05:50:38 +0000 (13:50 +0800)
commit32b07dd904439a50b2c75dc5817dafc9372e756e
tree6a9e1c65ca4cd395e041525a5e97dd060fe566b0
parentc643ffd703f5980494505aeb4ece6c0194889efe
test/dashboard: hardcode .coverage path to workaround tox bugs

rhel/centos 7.3 comes with tox 1.4.2, which has a bunch of issues related
to environment variable substitution. for instance, see
- https://github.com/tox-dev/tox/issues/515
so, instead of having different coverage files for py3 and py2.7, it
would be simpler to just use the same path for coverage. this approach
works because pytest-cov plugin erases the coverage data file at the
beginning of test[1].

---
[1] https://pypi.org/project/pytest-cov/#coverage-data-file .

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/dashboard/tox.ini