Meta: Ensure WPT repository exists before attempting to import tests

Previously, importing tests would fail if the WPT repository wasn't
already cloned.
This commit is contained in:
Tim Ledbetter 2025-07-30 20:03:42 +01:00 committed by Jelle Raaijmakers
commit 138eabcf0d
Notes: github-actions[bot] 2025-07-30 20:48:18 +00:00

View file

@ -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."