From ce483fb2c9f029d304df587b5fbdcf60b10b1612 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Thu, 20 Apr 2023 19:47:52 +0300 Subject: [PATCH] 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. --- Tests/LibWeb/Layout/layout_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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