btrfs-progs: tests: don't check subpage related warnings for simple fsck tests

For fsck tests, we check the subpage warnings for each type 1 test, but
such type 1 tests are mostly read-only tests, and one of the test will
trigger new subpage related warnings (fsck/018).

For subpage related warnings, what we really care are write operations,
including mkfs, btrfs-convert and repair, not those read-only tests.

So skip the subpage warning check for fsck type 1 tests to prevent false
alert of later more strict subpage warnings.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Qu Wenruo 2021-08-18 14:44:19 +08:00 committed by David Sterba
parent 82e0720312
commit 701c7d58db
1 changed files with 8 additions and 1 deletions

View File

@ -64,7 +64,14 @@ run_one_test() {
fi
_fail "test failed for case $(basename $testname)"
fi
check_test_results "$RESULTS" "$testname"
# These tests have overriden check_image() and their images may
# have intentional unaligned metadata to trigger subpage
# warnings (like fsck/018), skip the check for their subpage
# warnings.
#
# We care about subpage related warnings for write operations
# (mkfs/convert/repair), not those read-only checks on crafted
# images.
else
# Type 1
check_all_images