From: Anand Jain Date: Fri, 29 Dec 2023 06:27:39 +0000 (+0800) Subject: common: add _filter_trailing_whitespace X-Git-Tag: v2024.01.14~11 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=08dbb837f1a84f76c42fdfb8f403dec064467f0a;p=xfstests-dev.git common: add _filter_trailing_whitespace The command 'btrfs inspect-internal dump-tree -t raid_stripe' introduces trailing whitespace in its output. Apply a filter to remove it. Used in btrfs/30[4-8][.out]. Signed-off-by: Anand Jain Signed-off-by: Zorro Lang --- diff --git a/common/filter b/common/filter index 509ee950..36d51bd9 100644 --- a/common/filter +++ b/common/filter @@ -651,5 +651,10 @@ _filter_bash() sed -e "s/^bash: line 1: /bash: /" } +_filter_trailing_whitespace() +{ + sed -E -e "s/\s+$//" +} + # make sure this script returns success /bin/true