]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
generic/294: Filter backquotes from mknod error output
authorJan Kara <jack@suse.cz>
Thu, 21 Jul 2016 06:17:35 +0000 (08:17 +0200)
committerEryu Guan <eguan@redhat.com>
Thu, 21 Jul 2016 06:38:31 +0000 (14:38 +0800)
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>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/filter

index 8d9f489bea1c6f2071cb06851033da45c5525e17..b229a97dfa0e84b538925c64e3329e742505f8e0 100644 (file)
@@ -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