Meta: Use correct binary paths for MacOS in WPT.sh

This commit is contained in:
Tim Ledbetter 2024-08-15 23:14:04 +01:00 committed by Andreas Kling
parent 29886b804d
commit 961ad3c8e9
Notes: github-actions[bot] 2024-08-17 05:44:29 +00:00

View file

@ -11,8 +11,15 @@ WPT_REPOSITORY_URL=${WPT_REPOSITORY_URL:-"https://github.com/web-platform-tests/
# shellcheck source=/dev/null
. "${DIR}/shell_include.sh"
LADYBIRD_BINARY=${LADYBIRD_BINARY:-"${LADYBIRD_SOURCE_DIR}/Build/ladybird/bin/Ladybird"}
WEBDRIVER_BINARY=${WEBDRIVER_BINARY:-"${LADYBIRD_SOURCE_DIR}/Build/ladybird/bin/WebDriver"}
default_binary_path() {
if [ "$(uname -s)" = "Darwin" ]; then
echo "${LADYBIRD_SOURCE_DIR}/Build/ladybird/bin/Ladybird.app/Contents/MacOS/"
else
echo "${LADYBIRD_SOURCE_DIR}/Build/ladybird/bin/"
fi
}
LADYBIRD_BINARY=${LADYBIRD_BINARY:-"$(default_binary_path)/Ladybird"}
WEBDRIVER_BINARY=${WEBDRIVER_BINARY:-"$(default_binary_path)/WebDriver"}
WPT_PROCESSES=${WPT_PROCESSES:-$(get_number_of_processing_units)}
WPT_CERTIFICATES=(
"tools/certs/cacert.pem"