From e26d848ddef355e71fc6c36f2ee8c5e7889c057c Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Mon, 7 Jul 2025 15:03:03 +0100 Subject: [PATCH] Meta: Exit gracefully when importing multiple WPT tests is interrupted --- Meta/WPT.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Meta/WPT.sh b/Meta/WPT.sh index 24457bb9a91..b4233f51e84 100755 --- a/Meta/WPT.sh +++ b/Meta/WPT.sh @@ -619,15 +619,15 @@ import_wpt() pushd "${LADYBIRD_SOURCE_DIR}" > /dev/null ./Meta/ladybird.py build test-web - set +e + trap 'exit 1' EXIT INT TERM for path in "${TESTS[@]}"; do echo "Importing test from ${path}" if ! ./Meta/import-wpt-test.py "${IMPORT_ARGS[@]}" https://wpt.live/"${path}"; then continue fi - "${TEST_WEB_BINARY}" --rebaseline -f "$path" + "${TEST_WEB_BINARY}" --rebaseline -f "$path" || true done - set -e + trap - EXIT INT TERM popd > /dev/null }