]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: fix failure of tests that use defrag on btrfs-progs v6.0+
authorFilipe Manana <fdmanana@suse.com>
Wed, 9 Nov 2022 16:44:58 +0000 (16:44 +0000)
committerZorro Lang <zlang@kernel.org>
Wed, 23 Nov 2022 03:55:03 +0000 (11:55 +0800)
commitd6deed033681643118cbeea0bc8841f2ee5327f1
tree113f776a1cf802fa7e60766ee1582ce8d8948e6d
parent0d044155ff7686710a18fa952f0d76559dbfed6d
btrfs: fix failure of tests that use defrag on btrfs-progs v6.0+

Starting with btrfs-progs v6.0, the defrag command now prints to stdout
the full path of the files it processes. This makes test cases btrfs/021
and btrfs/256 fail because they don't expect any output from the defrag
command.

The change happened with the following commit in btrfs-progs:

  dd724f21803d ("btrfs-progs: add logic to handle LOG_DEFAULT messages")

So update the tests to ignore the stdout of the defrag command.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/021
tests/btrfs/256