diff --git a/tests/common b/tests/common index 852793d2..22a72cbb 100644 --- a/tests/common +++ b/tests/common @@ -832,4 +832,17 @@ init_env() echo " convert: $TEST_ARGS_CONVERT" >> "$RESULTS" fi } + +# Catch critical warning messages in test results +check_test_results() +{ + local results="$1" + local testname="$2" + + # Check subpage related warning + if grep -q "crrosses 64K page boundary" "$results"; then + _fail "found subpage related warning for case $testname" + fi +} + init_env diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh index 2074fd6d..d849203e 100755 --- a/tests/convert-tests.sh +++ b/tests/convert-tests.sh @@ -70,6 +70,7 @@ run_one_test() { fi _fail "test failed for case $testname" fi + check_test_results "$RESULTS" "$testname" else _fail "custom test script not found" fi diff --git a/tests/fsck-tests.sh b/tests/fsck-tests.sh index 15e3d8d5..ed18136f 100755 --- a/tests/fsck-tests.sh +++ b/tests/fsck-tests.sh @@ -64,6 +64,7 @@ run_one_test() { fi _fail "test failed for case $(basename $testname)" fi + check_test_results "$RESULTS" "$testname" else # Type 1 check_all_images diff --git a/tests/misc-tests.sh b/tests/misc-tests.sh index 4b525333..7259f652 100755 --- a/tests/misc-tests.sh +++ b/tests/misc-tests.sh @@ -66,6 +66,7 @@ do fi _fail "test failed for case $(basename $i)" fi + check_test_results "$RESULTS" "$(basename $i)" fi cd "$TEST_TOP" done diff --git a/tests/mkfs-tests.sh b/tests/mkfs-tests.sh index 09a310cc..29cf3e2e 100755 --- a/tests/mkfs-tests.sh +++ b/tests/mkfs-tests.sh @@ -61,6 +61,7 @@ do fi _fail "test failed for case $(basename $i)" fi + check_test_results "$RESULTS" "$(basename $i)" fi cd "$TEST_TOP" done