From e4018d0496377f570c132b843c1fd2cd0abf11fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alfonso=20Mart=C3=ADnez?= Date: Wed, 19 Feb 2020 08:39:55 +0100 Subject: [PATCH] mgr/dashboard: coverage venv python version same as mgr MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/pybind/mgr/dashboard/run-backend-api-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/run-backend-api-tests.sh b/src/pybind/mgr/dashboard/run-backend-api-tests.sh index 6eacc2cfaf2..9a91909d422 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 } -- 2.39.5