xfs
[Top] [All Lists]

[PATCH 1/2] Fix output parsing in _check_udf_filesystem()

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/2] Fix output parsing in _check_udf_filesystem()
From: Jan Kara <jack@xxxxxxx>
Date: Mon, 23 Dec 2013 23:53:50 +0100
Cc: Jan Kara <jack@xxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1387839231-8558-1-git-send-email-jack@xxxxxxx>
References: <1387839231-8558-1-git-send-email-jack@xxxxxxx>
Move of tests into separate subdirectories broke sed(1) expression in
_check_udf_filesystem(). Actually use of sed in that place was rather
stupid so just replace it with plain echo.

Signed-off-by: Jan Kara <jack@xxxxxxx>
---
 common/rc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/common/rc b/common/rc
index fe6bbfcbfc55..12f0196655a8 100644
--- a/common/rc
+++ b/common/rc
@@ -1582,9 +1582,8 @@ _check_udf_filesystem()
     sleep 1 # Due to a problem with time stamps in udf_test
     $here/src/udf_test $OPT_ARG $device | tee $seqres.checkfs | egrep 
"Error|Warning" | \
        _udf_test_known_error_filter | \
-       egrep -iv "Error count:.*[0-9]+.*total occurrences:.*[0-9]+|Warning 
count:.*[0-9]+.*total occurrences:.*[0-9]+" | \
-       sed "s/^.*$/Warning UDF Verifier reported errors see $seqres.checkfs./g"
-
+       egrep -iv "Error count:.*[0-9]+.*total occurrences:.*[0-9]+|Warning 
count:.*[0-9]+.*total occurrences:.*[0-9]+" && \
+        echo "Warning UDF Verifier reported errors see $seqres.checkfs."
 }
 
 _check_xfs_test_fs()
-- 
1.8.1.4

<Prev in Thread] Current Thread [Next in Thread>