]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/ceph-disk: specify the python used for creating venv 20817/head
authorKefu Chai <kchai@redhat.com>
Fri, 9 Mar 2018 07:27:05 +0000 (15:27 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 9 Mar 2018 12:03:39 +0000 (20:03 +0800)
commit054806b5bb8fce846238d2236c359bf21f5e0709
tree3454b16895cb3f40b13871dd5a7052bc3aecec02
parent0b5fd352fb2c95410ae3c3ba63ba7c136f49ae24
test/ceph-disk: specify the python used for creating venv

run-tox-ceph-disk always fails with following error

py27 runtests: commands[0] | coverage run --append --source=ceph_disk
/home/jenkins-build/build/workspace/ceph-pull-requests/src/ceph-disk/.tox/py27/bin/py.test
-vv
/home/jenkins-build/build/workspace/ceph-pull-requests/src/ceph-disk/tests/test_main.py
ERROR: InvocationError: could not find executable 'coverage'

but the log shows that coverage==3.7.1 was indeed installed in the py27
env. i tried to specify the full path of coverage in "commands" section
in tox.ini, but the problem persisted -- this time the backtrace was
printed, and the raised exception was 'OSError: [Errno 2] No such file
or directory'. so try to use the specified python for creating venv.

Fixes: http://tracker.ceph.com/issues/23281
Signed-off-by: Kefu Chai <kchai@redhat.com>
Conflicts:
        src/ceph-disk/tox.ini: the issue described above only exists
in luminous branch, so this change is not cherry-picked from master.
src/ceph-disk/tox.ini