2014-04-12 10:07:57

by Azat Khuzhin

[permalink] [raw]
Subject: [PATCH 1/2] xfstests-bld: get-results: add -a option for grep, to process binary files as text

Since logs can have some _non ASCII_ symbols and grep think that this is
a binary file.

Signed-off-by: Azat Khuzhin <[email protected]>
---
kvm-xfstests/get-results | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kvm-xfstests/get-results b/kvm-xfstests/get-results
index be4a729..4151e36 100755
--- a/kvm-xfstests/get-results
+++ b/kvm-xfstests/get-results
@@ -1,2 +1,2 @@
#!/bin/sh
-egrep "(^BEGIN)|(^END)|(^Ran: )|(^Failures: )|(^Passed)|(inconsistent)" $*
+egrep -a "(^BEGIN)|(^END)|(^Ran: )|(^Failures: )|(^Passed)|(inconsistent)" $*
--
1.9.0



2014-04-14 14:00:31

by Theodore Ts'o

[permalink] [raw]
Subject: Re: [PATCH 1/2] xfstests-bld: get-results: add -a option for grep, to process binary files as text

On Sat, Apr 12, 2014 at 02:07:22PM +0400, Azat Khuzhin wrote:
> Since logs can have some _non ASCII_ symbols and grep think that this is
> a binary file.
>
> Signed-off-by: Azat Khuzhin <[email protected]>

Thanks, applied.

- Ted