]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: coverage venv python version same as mgr 33407/head
authorAlfonso Martínez <almartin@redhat.com>
Wed, 19 Feb 2020 07:39:55 +0000 (08:39 +0100)
committerAlfonso Martínez <almartin@redhat.com>
Wed, 19 Feb 2020 07:39:55 +0000 (08:39 +0100)
As https://github.com/ceph/ceph/pull/31525 is merged,
coverage dep. in run-backend-api-tests.sh has to be installed in venv
with the same python version as ceph-mgr.

Signed-off-by: Alfonso Martínez <almartin@redhat.com>
src/pybind/mgr/dashboard/run-backend-api-tests.sh

index 6eacc2cfaf271d7a43578803d53d922ea54a9748..9a91909d422fa44e2b709a8c9bf1aefcce5acf1c 100755 (executable)
@@ -56,11 +56,11 @@ setup_coverage() {
     # In CI environment we cannot install coverage in system, so we install it in a dedicated venv
     # so only coverage is available when adding this path.
     cd $TEMP_DIR
-    virtualenv --python=${TEUTHOLOGY_PYTHON_BIN:-/usr/bin/python} coverage-venv
+    virtualenv --python=/usr/bin/python3 coverage-venv
     source coverage-venv/bin/activate
     cd $CURR_DIR
     pip install coverage==4.5.2
-    COVERAGE_PATH=$(python -c "import sysconfig; print(sysconfig.get_paths()['purelib'])")
+    COVERAGE_PATH=$(python -c "import sysconfig; print(sysconfig.get_paths()['platlib'])")
     deactivate
 }