From: Jan Kara Date: Thu, 21 Jul 2016 06:17:35 +0000 (+0200) Subject: generic/294: Filter backquotes from mknod error output X-Git-Tag: v2022.05.01~2423 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9b06a9fcb594e8ea95e054fe30d5bc61d8a23703;p=users%2Fhch%2Fxfstests-dev.git generic/294: Filter backquotes from mknod error output 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 Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/filter b/common/filter index 8d9f489be..b229a97df 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