From: XiaoLi Feng <xifeng@redhat.com>
To: fstests@vger.kernel.org
Cc: Xiaoli Feng <xifeng@redhat.com>
Subject: [PATCH] common/rc: add _filter_scratch in _test_inode_flag
Date: Mon, 23 Nov 2020 14:25:26 +0800 [thread overview]
Message-ID: <20201123062526.18465-1-xifeng@redhat.com> (raw)
From: Xiaoli Feng <xifeng@redhat.com>
Avoid the invalid failure when the path of file include test flag.
Signed-off-by: Xiaoli Feng <xifeng@redhat.com>
---
common/rc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/rc b/common/rc
index b5a504e0..04080331 100644
--- a/common/rc
+++ b/common/rc
@@ -3069,7 +3069,7 @@ _test_inode_flag()
local flag=$1
local file=$2
- if $XFS_IO_PROG -r -c 'lsattr -v' "$file" | grep -q "$flag" ; then
+ if $XFS_IO_PROG -r -c 'lsattr -v' "$file" | _filter_scratch | grep -q "$flag" ; then
return 0
fi
return 1
--
2.18.1
next reply other threads:[~2020-11-23 6:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-23 6:25 XiaoLi Feng [this message]
2020-11-29 8:12 ` [PATCH] common/rc: add _filter_scratch in _test_inode_flag Eryu Guan
2020-12-01 16:04 ` Xiaoli Feng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201123062526.18465-1-xifeng@redhat.com \
--to=xifeng@redhat.com \
--cc=fstests@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox