Skip to content

Commit aa8d31a

Browse files
committed
fix missing TOP_DIR which can break sourcing
There were a couple of places where TOP_DIR is missing when we do a source of content in tools. Given that working directory can change quite often during devstack, we need to always be explicit here. Change-Id: I14b5699637d7f5db745bccf116f440cdcbaa8d91
1 parent 86b3a92 commit aa8d31a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/stack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function stack_install_service {
1818
if type install_${service} >/dev/null 2>&1; then
1919
if [[ -n ${PROJECT_VENV[$service]:-} ]]; then
2020
rm -rf ${PROJECT_VENV[$service]}
21-
source tools/build_venv.sh ${PROJECT_VENV[$service]}
21+
source $TOP_DIR/tools/build_venv.sh ${PROJECT_VENV[$service]}
2222
export PIP_VIRTUAL_ENV=${PROJECT_VENV[$service]:-}
2323
fi
2424
install_${service}

stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ fi
685685

686686
# Pre-build some problematic wheels
687687
if [[ ! -d ${WHEELHOUSE:-} ]]; then
688-
source tools/build_wheels.sh
688+
source $TOP_DIR/tools/build_wheels.sh
689689
fi
690690

691691

0 commit comments

Comments
 (0)