Meta: Use cross-platform method to get number of CPUs in WPT.sh
This commit is contained in:
parent
819f966419
commit
29886b804d
Notes:
github-actions[bot]
2024-08-17 05:44:34 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/29886b804d7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1086
1 changed files with 4 additions and 5 deletions
|
@ -8,10 +8,12 @@ LADYBIRD_SOURCE_DIR="$(realpath "${DIR}"/..)"
|
|||
WPT_SOURCE_DIR=${WPT_SOURCE_DIR:-"${LADYBIRD_SOURCE_DIR}/Tests/LibWeb/WPT/wpt"}
|
||||
WPT_REPOSITORY_URL=${WPT_REPOSITORY_URL:-"https://github.com/web-platform-tests/wpt.git"}
|
||||
|
||||
# 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"}
|
||||
|
||||
WPT_PROCESSES=${WPT_PROCESSES:-$(nproc)}
|
||||
WPT_PROCESSES=${WPT_PROCESSES:-$(get_number_of_processing_units)}
|
||||
WPT_CERTIFICATES=(
|
||||
"tools/certs/cacert.pem"
|
||||
"${LADYBIRD_SOURCE_DIR}/Build/ladybird/Lagom/cacert.pem"
|
||||
|
@ -75,9 +77,6 @@ if [ "$ARG" = "--log" ]; then
|
|||
fi
|
||||
TEST_LIST=( "$@" )
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
. "${DIR}/shell_include.sh"
|
||||
|
||||
exit_if_running_as_root "Do not run WPT.sh as root"
|
||||
|
||||
ensure_wpt_repository() {
|
||||
|
|
Loading…
Add table
Reference in a new issue