mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
Tests: Add patch to WPT to let our metadata update script work again
This commit is contained in:
parent
52f1eaefa0
commit
e64aa7da7a
2 changed files with 24 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andrew Kaster <akaster@serenityos.org>
|
||||||
|
Date: Tue, 13 Feb 2024 12:31:25 -0700
|
||||||
|
Subject: [PATCH] tools: Pass product name to update-metadata fallback path
|
||||||
|
|
||||||
|
---
|
||||||
|
tools/wpt/update.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tools/wpt/update.py b/tools/wpt/update.py
|
||||||
|
index 4dba7e69df8376e7e8566525ab083e6e0348a92f..17cd74e37fd79b839167feedc105ce986e89322e 100644
|
||||||
|
--- a/tools/wpt/update.py
|
||||||
|
+++ b/tools/wpt/update.py
|
||||||
|
@@ -44,7 +44,7 @@ def update_expectations(_, **kwargs):
|
||||||
|
update_properties = metadata.get_properties(properties_file=kwargs["properties_file"],
|
||||||
|
extra_properties=kwargs["extra_property"],
|
||||||
|
config=kwargs["config"],
|
||||||
|
- product=kwargs["product"])
|
||||||
|
+ product=kwargs["product"].name)
|
||||||
|
|
||||||
|
manifest_update(kwargs["test_paths"])
|
||||||
|
metadata.update_expected(kwargs["test_paths"],
|
|
@ -46,6 +46,8 @@ if [ ! -d "${SCRIPT_DIR}/wpt" ]; then
|
||||||
# Switch to the commit that was used to generate tests expectations. Requires periodic updates.
|
# Switch to the commit that was used to generate tests expectations. Requires periodic updates.
|
||||||
git -C wpt checkout eedf737ce39c512d0ca3471f988972e3ece11822
|
git -C wpt checkout eedf737ce39c512d0ca3471f988972e3ece11822
|
||||||
|
|
||||||
|
git apply 0001-tools-Pass-product-name-to-update-metadata-fallback-.patch
|
||||||
|
|
||||||
# Update hosts file if needed
|
# Update hosts file if needed
|
||||||
if [ "$(comm -13 <(sort -u /etc/hosts) <(python3 ./wpt/wpt make-hosts-file | sort -u) | wc -l)" -gt 0 ]; then
|
if [ "$(comm -13 <(sort -u /etc/hosts) <(python3 ./wpt/wpt make-hosts-file | sort -u) | wc -l)" -gt 0 ]; then
|
||||||
echo "Enter superuser password to append wpt hosts to /etc/hosts"
|
echo "Enter superuser password to append wpt hosts to /etc/hosts"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue