mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-26 11:18:59 +00:00
Meta: Ensure local WPT repository is up to date before importing
The current import process assumes that the local WPT repository is up to date. Let's make sure that's true before importing a new test.
This commit is contained in:
parent
180bb0fc5d
commit
53adf3be1e
Notes:
github-actions[bot]
2025-07-02 11:03:19 +00:00
Author: https://github.com/tcl3
Commit: 53adf3be1e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5268
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/gmta
1 changed files with 16 additions and 0 deletions
16
Meta/WPT.sh
16
Meta/WPT.sh
|
@ -578,6 +578,22 @@ list_tests_wpt()
|
||||||
|
|
||||||
import_wpt()
|
import_wpt()
|
||||||
{
|
{
|
||||||
|
pushd "${WPT_SOURCE_DIR}" > /dev/null
|
||||||
|
if ! git fetch origin > /dev/null; then
|
||||||
|
echo "Failed to fetch the WPT repository, please check your network connection."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
local local_hash
|
||||||
|
local_hash=$(git rev-parse HEAD)
|
||||||
|
local remote_hash
|
||||||
|
remote_hash=$(git rev-parse origin/master)
|
||||||
|
|
||||||
|
if [ "$local_hash" != "$remote_hash" ]; then
|
||||||
|
echo "WPT repository is not up to date, please run '$0 update' first."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
popd > /dev/null
|
||||||
|
|
||||||
for i in "${!INPUT_PATHS[@]}"; do
|
for i in "${!INPUT_PATHS[@]}"; do
|
||||||
item="${INPUT_PATHS[i]}"
|
item="${INPUT_PATHS[i]}"
|
||||||
item="${item#http://wpt.live/}"
|
item="${item#http://wpt.live/}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue