From 8e4e00d64f743a6c894ae9f3bfaac8fd5af875cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alfonso=20Mart=C3=ADnez?= Date: Thu, 9 Apr 2020 09:14:24 +0200 Subject: [PATCH] mgr/dashboard: fix COVERAGE_PATH in run-backend-api-tests.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/pybind/mgr/dashboard/run-backend-api-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.47.3