From 7219f03d7744a4d8163c9f8e925aecb0f989be47 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 13 Oct 2025 12:31:59 +0400 Subject: [PATCH] Allow running .buildkite scripts on macOS (#3087) realpath -s is a GNU extension, but we don't need to care about symlinks here. (cherry picked from commit dd3957903b96d32a3ecbaa506892bd3c4b8fc9b8) --- .buildkite/functions/imports.sh | 2 +- .buildkite/run-elasticsearch.sh | 2 +- .buildkite/run-tests | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.buildkite/functions/imports.sh b/.buildkite/functions/imports.sh index e732ebba0..ad7a20269 100755 --- a/.buildkite/functions/imports.sh +++ b/.buildkite/functions/imports.sh @@ -43,7 +43,7 @@ if [[ -z $es_node_name ]]; then fi - export script_path=$(dirname $(realpath -s $0)) + export script_path=$(dirname $(realpath $0)) source $script_path/functions/cleanup.sh source $script_path/functions/wait-for-container.sh trap "cleanup_trap ${network_name}" EXIT diff --git a/.buildkite/run-elasticsearch.sh b/.buildkite/run-elasticsearch.sh index 2f73ea8d1..2dda5b4af 100755 --- a/.buildkite/run-elasticsearch.sh +++ b/.buildkite/run-elasticsearch.sh @@ -21,7 +21,7 @@ # - Moved ELASTIC_PASSWORD and xpack.security.enabled to the base arguments for "Security On by default" # - Use https only when TEST_SUITE is "platinum", when "free" use http -script_path=$(dirname $(realpath -s $0)) +script_path=$(dirname $(realpath $0)) source $script_path/functions/imports.sh set -euo pipefail diff --git a/.buildkite/run-tests b/.buildkite/run-tests index 5d6b38039..90a95a209 100755 --- a/.buildkite/run-tests +++ b/.buildkite/run-tests @@ -10,7 +10,7 @@ export TEST_SUITE="${TEST_SUITE:=platinum}" export PYTHON_VERSION="${PYTHON_VERSION:=3.13}" export PYTHON_CONNECTION_CLASS="${PYTHON_CONNECTION_CLASS:=urllib3}" -script_path=$(dirname $(realpath -s $0)) +script_path=$(dirname $(realpath $0)) source $script_path/functions/imports.sh set -euo pipefail