diff options
author | Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com> | 2023-04-20 19:47:52 +0300 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-04-21 11:00:21 +0100 |
commit | ce483fb2c9f029d304df587b5fbdcf60b10b1612 (patch) | |
tree | 9c6f0628975890cb2a41170f5f9e8bdf903a10f6 /Tests/LibWeb | |
parent | 8cf0cc4d0ae350b262e89fd1db82db5b29bb65d7 (diff) | |
download | serenity-ce483fb2c9f029d304df587b5fbdcf60b10b1612.zip |
Tests/LibWeb: Time limit layout tests
This change will prevent CI runners from being stuck trying to run
layout tests on PR that made browser hang.
Diffstat (limited to 'Tests/LibWeb')
-rwxr-xr-x | Tests/LibWeb/Layout/layout_test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibWeb/Layout/layout_test.sh b/Tests/LibWeb/Layout/layout_test.sh index dfe61502d1..11368c1d29 100755 --- a/Tests/LibWeb/Layout/layout_test.sh +++ b/Tests/LibWeb/Layout/layout_test.sh @@ -16,7 +16,7 @@ find "${SCRIPT_DIR}/input/" -type f -name "*.html" -print0 | while IFS= read -r input_html_file=${input_html_path/${SCRIPT_DIR}"/input/"/} input_html_file=${input_html_file/".html"/} - output_layout_dump=$(cd "${LADYBIRD_BUILD_DIR}"; "${BROWSER_BINARY}" -d "${input_html_path}") + output_layout_dump=$(cd "${LADYBIRD_BUILD_DIR}"; timeout 300s "${BROWSER_BINARY}" -d "${input_html_path}") expected_layout_dump_path="${SCRIPT_DIR}/expected/${input_html_file}.txt" if cmp <(echo "${output_layout_dump}") "${expected_layout_dump_path}"; then |