From 138eabcf0dc095b74b8e564d3c6fdb866f2772d6 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Wed, 30 Jul 2025 20:03:42 +0100 Subject: [PATCH] Meta: Ensure WPT repository exists before attempting to import tests Previously, importing tests would fail if the WPT repository wasn't already cloned. --- Meta/WPT.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Meta/WPT.sh b/Meta/WPT.sh index 973f92bd9d2..a7798e92908 100755 --- a/Meta/WPT.sh +++ b/Meta/WPT.sh @@ -672,6 +672,8 @@ list_tests_wpt() import_wpt() { + ensure_wpt_repository + 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."