]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/dashboard/run-backend-api-tests: add src/pybind to PYTHONPATH 37740/head
authorKefu Chai <kchai@redhat.com>
Fri, 13 Nov 2020 16:38:04 +0000 (00:38 +0800)
committerTatjana Dehler <tdehler@suse.com>
Mon, 16 Nov 2020 11:12:25 +0000 (12:12 +0100)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/dashboard/run-backend-api-tests.sh

index b8cdc78baac2c135304a70abb10bf5de08b5ec30..2dac4de2e34f3f859b2ccf727a6677dd332d0781 100755 (executable)
@@ -119,8 +119,7 @@ run_teuthology_tests() {
     local python_common_dir=$source_dir/src/python-common
     # In CI environment we set python paths inside build (where you find the required frontend build: "dist" dir).
     if [[ -n "$JENKINS_HOME" ]]; then
-        export PYBIND=$LOCAL_BUILD_DIR/src/pybind
-        pybind_dir=$PYBIND
+        pybind_dir+=":$LOCAL_BUILD_DIR/src/pybind"
     fi
     export PYTHONPATH=$source_dir/qa:$LOCAL_BUILD_DIR/lib/cython_modules/lib.3/:$pybind_dir:$python_common_dir:${COVERAGE_PATH}
     export RGW=${RGW:-1}