From: Alfonso Martínez Date: Wed, 19 Feb 2020 07:39:55 +0000 (+0100) Subject: mgr/dashboard: coverage venv python version same as mgr X-Git-Tag: v15.1.1~354^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33407%2Fhead;p=ceph.git mgr/dashboard: coverage venv python version same as mgr 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 --- diff --git a/src/pybind/mgr/dashboard/run-backend-api-tests.sh b/src/pybind/mgr/dashboard/run-backend-api-tests.sh index 6eacc2cfaf27..9a91909d422f 100755 --- a/src/pybind/mgr/dashboard/run-backend-api-tests.sh +++ b/src/pybind/mgr/dashboard/run-backend-api-tests.sh @@ -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 }