]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
btrfs: update some tests to be able to run with btrfs-progs v6.11
authorFilipe Manana <fdmanana@suse.com>
Mon, 7 Oct 2024 11:32:50 +0000 (12:32 +0100)
committerZorro Lang <zlang@kernel.org>
Sat, 12 Oct 2024 14:06:30 +0000 (22:06 +0800)
commitb37aa9c8b0f9a648b2b1d508a952c1c4047683a8
tree12f4afa00fceaf1dbb7cb871324e0a93df5eb773
parentf4b00fafa4ef091c9d73818f7843e0881ca773ca
btrfs: update some tests to be able to run with btrfs-progs v6.11

In btrfs-progs v6.11 the output of the "filesystem show" command changed
so that it no longers prints blank lines. This happened with commit
4331bfb011bd ("btrfs-progs: fi show: remove stray newline in filesystem
show").

We have some tests that expect the blank lines in their golden output,
and therefore they fail with btrfs-progs v6.11.

So update the filter _filter_btrfs_filesystem_show to remove blank lines
and change the golden output of the tests to not expect the blank lines,
making the tests work with btrfs-progs v6.11 and older versions.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/filter.btrfs
tests/btrfs/006.out
tests/btrfs/100.out
tests/btrfs/101.out
tests/btrfs/218.out
tests/btrfs/254.out