]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
Fix output parsing in _check_udf_filesystem()
authorJan Kara <jack@suse.cz>
Mon, 23 Dec 2013 22:53:50 +0000 (22:53 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 8 Jan 2014 13:26:17 +0000 (07:26 -0600)
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@suse.cz>
Reviewed-by: Ben Myers <bpm@sgi.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
common/rc

index a2005c992932aaa9dade9d51c3f1fcf6ee2daacf..b3ccf9f1d1b3ddc4e291d708a25f48b3d3b475a5 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -1629,9 +1629,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()