mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Meta: Set LADYBIRD_GIT_VERSION
environment variable in WPT.sh
This ensures the `browser_version` field of any wptreport format log files include the current git commit hash.
This commit is contained in:
parent
472d5e87e9
commit
ed658154d2
Notes:
github-actions[bot]
2024-10-29 13:31:11 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/ed658154d2a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1940 Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 8 additions and 2 deletions
10
Meta/WPT.sh
10
Meta/WPT.sh
|
@ -24,6 +24,12 @@ default_binary_path() {
|
|||
fi
|
||||
}
|
||||
|
||||
ladybird_git_hash() {
|
||||
pushd "${LADYBIRD_SOURCE_DIR}" > /dev/null
|
||||
git rev-parse --short HEAD
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
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)}
|
||||
|
@ -153,8 +159,8 @@ execute_wpt() {
|
|||
fi
|
||||
WPT_ARGS+=( "--webdriver-arg=--certificate=${certificate_path}" )
|
||||
done
|
||||
echo QT_QPA_PLATFORM="offscreen" ./wpt run "${WPT_ARGS[@]}" ladybird "${TEST_LIST[@]}"
|
||||
QT_QPA_PLATFORM="offscreen" ./wpt run "${WPT_ARGS[@]}" ladybird "${TEST_LIST[@]}"
|
||||
echo QT_QPA_PLATFORM="offscreen" LADYBIRD_GIT_VERSION="$(ladybird_git_hash)" ./wpt run "${WPT_ARGS[@]}" ladybird "${TEST_LIST[@]}"
|
||||
QT_QPA_PLATFORM="offscreen" LADYBIRD_GIT_VERSION="$(ladybird_git_hash)" ./wpt run "${WPT_ARGS[@]}" ladybird "${TEST_LIST[@]}"
|
||||
popd > /dev/null
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue