From: Johannes Thumshirn Date: Wed, 25 Feb 2026 10:27:40 +0000 (+0100) Subject: fstests: add _fixed_by_fs_commit helper X-Git-Tag: v2026.03.20~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=02e625a5875ae42ba63ca2622bf2be7759a1f8ad;p=xfstests-dev.git fstests: add _fixed_by_fs_commit helper Add a new helper `_fixed_by_fs_commit` eliminating the if [ $FSTYP = fs ] && _fixed_by_kernel_commit XXXX YYYY pattern. Reviewed-by: Christoph Hellwig Signed-off-by: Johannes Thumshirn Signed-off-by: Zorro Lang --- diff --git a/common/rc b/common/rc index fd4ca964..3b2a491d 100644 --- a/common/rc +++ b/common/rc @@ -1898,6 +1898,16 @@ _fixed_by_kernel_commit() _fixed_by_git_commit kernel $* } +_fixed_by_fs_commit() +{ + local fstyp=$1 + shift + + if [ "$fstyp" = "$FSTYP" ]; then + _fixed_by_kernel_commit $* + fi +} + # Compare with _fixed_by_* helpers, this helper is used for test cases # are not regression tests, e.g. functional tests or maintainer tests, # this helper suggests git commits that should be applied to source trees