From 47b135385cc8a59eb21f28c9390055e97c28217e Mon Sep 17 00:00:00 2001 From: Olga Naidjonoka Date: Tue, 19 Nov 2024 14:58:48 +0200 Subject: [PATCH] changed sudo-integration-tests.sh --- .buildkite/scripts/buildkite-integration-tests.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.buildkite/scripts/buildkite-integration-tests.sh b/.buildkite/scripts/buildkite-integration-tests.sh index 293292ce212..562bbefd9bd 100755 --- a/.buildkite/scripts/buildkite-integration-tests.sh +++ b/.buildkite/scripts/buildkite-integration-tests.sh @@ -15,9 +15,10 @@ if [ -z "$TEST_SUDO" ]; then fi if [ "$TEST_SUDO" == "true" ]; then - echo "Re-initializing ASDF. The user is changed to root..." - export HOME=/opt/buildkite-agent - source /opt/buildkite-agent/hooks/pre-command + echo "Re-initializing ASDF. The user is changed to root..." + 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