public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] common/rc: add filter in _test_inode_flag
@ 2021-02-18  8:57 XiaoLi Feng
  2021-02-18 13:41 ` Zorro Lang
  0 siblings, 1 reply; 5+ messages in thread
From: XiaoLi Feng @ 2021-02-18  8:57 UTC (permalink / raw)
  To: fstests; +Cc: Xiaoli Feng

From: Xiaoli Feng <xifeng@redhat.com>

Add _filter_testdir_and_scratch to avoid _test_inode_flag failed when
mount point contains flag string.

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 649b1cfd..473188c1 100644
--- a/common/rc
+++ b/common/rc
@@ -3112,7 +3112,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_testdir_and_scratch | grep -q "$flag" ; then
 		return 0
 	fi
 	return 1
-- 
2.18.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-19 16:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-18  8:57 [PATCH v3] common/rc: add filter in _test_inode_flag XiaoLi Feng
2021-02-18 13:41 ` Zorro Lang
2021-02-18 13:41   ` Zirong Lang
2021-02-19 16:00   ` Xiaoli Feng
2021-02-19 16:54     ` Zorro Lang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox