From: Kefu Chai Date: Wed, 7 Aug 2019 07:00:09 +0000 (+0800) Subject: mgr/dashboard: add python-common to $PYTHONPATH X-Git-Tag: v15.1.0~1947^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e36332595e88810db765b9d65843ad759640236d;p=ceph-ci.git 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 --- 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