From: Anand Jain Date: Wed, 29 Jan 2025 07:56:29 +0000 (+0800) Subject: fstests: filter: helper for sysfs error filtering X-Git-Tag: v2025.04.13~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=afdb10ee1853db1e1ac57d226a695446f191c110;p=xfstests-dev.git fstests: filter: helper for sysfs error filtering Added filter helper to filter sysfs write errors, retain only the error part. Signed-off-by: Anand Jain Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/common/filter b/common/filter index 1ebfd27e..bbe13f4c 100644 --- a/common/filter +++ b/common/filter @@ -674,5 +674,14 @@ _filter_flakey_EIO() sed -e "s#.*: Input\/output error#$message#" } +# Filters +# +./common/rc: line 5085: echo: write error: Invalid argument +# to +# Invalid argument +_filter_sysfs_error() +{ + sed 's/.*: \(.*\)$/\1/' +} + # make sure this script returns success /bin/true