diff --git a/.buildkite/scripts/buildkite-integration-tests.sh b/.buildkite/scripts/buildkite-integration-tests.sh index fee4f8c6460..81325c04bba 100755 --- a/.buildkite/scripts/buildkite-integration-tests.sh +++ b/.buildkite/scripts/buildkite-integration-tests.sh @@ -15,7 +15,8 @@ fi if [ "$TEST_SUDO" == "true" ]; then echo "Re-initializing ASDF. The user is changed to root..." - export HOME=/opt/buildkite-agent + export ASDF_DATA_DIR="/opt/buildkite-agent/.asdf" + export PATH="$ASDF_DATA_DIR/bin:$ASDF_DATA_DIR/shims:$PATH" source /opt/buildkite-agent/hooks/pre-command source .buildkite/hooks/pre-command || echo "No pre-command hook found" fi