From: Alfonso Martínez Date: Thu, 9 Apr 2020 07:14:24 +0000 (+0200) Subject: mgr/dashboard: fix COVERAGE_PATH in run-backend-api-tests.sh X-Git-Tag: v14.2.10~122^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8e4e00d64f743a6c894ae9f3bfaac8fd5af875cb;p=ceph.git mgr/dashboard: fix COVERAGE_PATH in run-backend-api-tests.sh As we cannot backport directly https://github.com/ceph/ceph/pull/33407 to nautilus and COVERAGE_PATH is invalid for CentOS7 + py2, this fix is applied directly to nautilus. 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 ccdb1ca61f3b..5ce957f0b9f0 100755 --- a/src/pybind/mgr/dashboard/run-backend-api-tests.sh +++ b/src/pybind/mgr/dashboard/run-backend-api-tests.sh @@ -98,7 +98,7 @@ setup_coverage() { 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 }