From e36332595e88810db765b9d65843ad759640236d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 7 Aug 2019 15:00:09 +0800 Subject: [PATCH] mgr/dashboard: add python-common to $PYTHONPATH fix the regression introduced by 8c50be5df6, so ceph-mgr's python modules are able to import python-common. Signed-off-by: Kefu Chai --- src/pybind/mgr/dashboard/run-backend-api-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 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 2cc17867617..8a1dfadfdc4 100755 --- a/src/pybind/mgr/dashboard/run-backend-api-tests.sh +++ b/src/pybind/mgr/dashboard/run-backend-api-tests.sh @@ -121,7 +121,8 @@ run_teuthology_tests() { export PATH=$BUILD_DIR/bin:$PATH source $TEMP_DIR/venv/bin/activate # Run after setting PATH as it does the last PATH export. export LD_LIBRARY_PATH=$BUILD_DIR/lib/cython_modules/lib.${CEPH_PY_VERSION_MAJOR}/:$BUILD_DIR/lib - export PYTHONPATH=$TEMP_DIR/teuthology:$BUILD_DIR/../qa:$BUILD_DIR/lib/cython_modules/lib.${CEPH_PY_VERSION_MAJOR}/:$BUILD_DIR/../src/pybind + local source_dir=$(dirname "$BUILD_DIR") + export PYTHONPATH=$TEMP_DIR/teuthology:$source_dir/qa:$BUILD_DIR/lib/cython_modules/lib.${CEPH_PY_VERSION_MAJOR}/:$source_dir/src/pybind:$source_dir/src/python-common export RGW=${RGW:-1} export COVERAGE_ENABLED=true -- 2.39.5