From: An Long Date: Fri, 11 Oct 2024 06:12:16 +0000 (+0800) Subject: btrfs/315: update filter to match mount cmd X-Git-Tag: xfs-zoned-2024-21-07~80 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=37f61a8fd323669fb39c4191ebd78d6d91e6826f;p=users%2Fhch%2Fxfstests-dev.git btrfs/315: update filter to match mount cmd Mount error info changed since util-linux v2.40 (91ea38e libmount: report failed syscall name). So update _filter_mount_error() to match it. Signed-off-by: An Long Reviewed-by: Filipe Manana Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/tests/btrfs/315 b/tests/btrfs/315 index 5852afadd..e6589abec 100755 --- a/tests/btrfs/315 +++ b/tests/btrfs/315 @@ -39,7 +39,12 @@ _filter_mount_error() # mount: : fsconfig system call failed: File exists. # dmesg(1) may have more information after failed mount system call. - grep -v dmesg | _filter_test_dir | sed -e "s/mount(2)\|fsconfig//g" + # For util-linux v2.4 and later: + # mount: : mount system call failed: File exists. + + grep -v dmesg | _filter_test_dir | \ + sed -e "s/mount(2)\|fsconfig//g" \ + -e "s/mount\( system call failed:\)/\1/" } seed_device_must_fail()