mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
Meta: Exit gracefully when importing multiple WPT tests is interrupted
This commit is contained in:
parent
d6f419af53
commit
e26d848dde
Notes:
github-actions[bot]
2025-07-15 16:11:23 +00:00
Author: https://github.com/tcl3
Commit: e26d848dde
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5337
Reviewed-by: https://github.com/gmta ✅
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue