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.
This commit is contained in:
Aliaksandr Kalenik 2023-04-20 19:47:52 +03:00 committed by Sam Atkins
parent 8cf0cc4d0a
commit ce483fb2c9
Notes: sideshowbarker 2024-07-17 01:55:29 +09:00

View file

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