diff --git a/Tests/LibWeb/Layout/layout_test.sh b/Tests/LibWeb/Layout/layout_test.sh index 41261a00f6..dfe61502d1 100755 --- a/Tests/LibWeb/Layout/layout_test.sh +++ b/Tests/LibWeb/Layout/layout_test.sh @@ -12,8 +12,9 @@ fi BROWSER_BINARY="./headless-browser" -for input_html_path in "${SCRIPT_DIR}"/input/*.html; do - input_html_file="$(basename "${input_html_path}" .html)" +find "${SCRIPT_DIR}/input/" -type f -name "*.html" -print0 | while IFS= read -r -d '' input_html_path; do + 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}") expected_layout_dump_path="${SCRIPT_DIR}/expected/${input_html_file}.txt"