mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
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:
parent
8cf0cc4d0a
commit
ce483fb2c9
Notes:
sideshowbarker
2024-07-17 01:55:29 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/ce483fb2c9 Pull-request: https://github.com/SerenityOS/serenity/pull/18442
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue