Make sure runners Python package directories are also in PYTHONPATH for
st2-run-pack-tests tool.
@@ -212,11 +212,13 @@ fi
if [ ${ST2_REPO_PATH} ]; then
ST2_REPO_PATH=${ST2_REPO_PATH:-/tmp/st2}
ST2_COMPONENTS=$(find ${ST2_REPO_PATH}/* -maxdepth 0 -name "st2*" -type d)
- PACK_PYTHONPATH="$(join ":" ${ST2_COMPONENTS}):${SENSORS_PATH}:${ACTIONS_PATH}:${ETC_PATH}"
+ ST2_RUNNERS=$(find ${ST2_REPO_PATH}/contrib/runners/* -maxdepth 0 -type d)
+ PACK_PYTHONPATH="$(join ":" ${ST2_COMPONENTS}):$(join ":" ${ST2_RUNNERS}):${SENSORS_PATH}:${ACTIONS_PATH}:${ETC_PATH}"
else
# ST2_REPO_PATH not provided, assume all the st2 component packages are
# already in PYTHONPATH
- PACK_PYTHONPATH="$(join ":" ${ST2_COMPONENTS}):${SENSORS_PATH}:${ACTIONS_PATH}:${ETC_PATH}"
+ ST2_RUNNERS=$(find /opt/stackstorm/runners/* -maxdepth 0 -type d)
+ PACK_PYTHONPATH="$(join ":" ${ST2_COMPONENTS}):$(join ":" ${ST2_RUNNERS}):${SENSORS_PATH}:${ACTIONS_PATH}:${ETC_PATH}"
fi
if [ "${JUST_TESTS}" = false ]; then
