public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] generic/294: Filter backquotes from mknod error output
@ 2016-07-21  6:17 Jan Kara
  2016-07-21  6:17 ` [PATCH 2/2] generic/130: Improve xfs_io filter Jan Kara
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kara @ 2016-07-21  6:17 UTC (permalink / raw)
  To: fstests; +Cc: Jan Kara

Really old versions of coreutils (mine are 8.12) quote a filename in the
output with a backquote in the beginning and normal quote in the end.
Improve _filter_mknod to handle that.

Signed-off-by: Jan Kara <jack@suse.cz>
---
 common/filter | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/filter b/common/filter
index 8d9f489bea1c..b229a97dfa0e 100644
--- a/common/filter
+++ b/common/filter
@@ -389,7 +389,7 @@ _filter_od()
 # mknod errors print unquoted filenames
 _filter_mknod()
 {
-	sed -e "s/mknod: '\(.*\)': File exists/mknod: \1: File exists/"
+	sed -e "s/mknod: [\`']\(.*\)': File exists/mknod: \1: File exists/"
 }
 
 # make sure this script returns success
-- 
2.6.6


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

end of thread, other threads:[~2016-07-21  8:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21  6:17 [PATCH 1/2] generic/294: Filter backquotes from mknod error output Jan Kara
2016-07-21  6:17 ` [PATCH 2/2] generic/130: Improve xfs_io filter Jan Kara
2016-07-21  6:55   ` Eryu Guan
2016-07-21  7:35     ` Jan Kara
2016-07-21  8:14       ` Jan Kara

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