diff mbox

[babeltrace] Fix: Use autoconf provided grep in test_formats

Message ID 1473979676-8006-1-git-send-email-mjeanson@efficios.com
State Accepted, archived
Headers show

Commit Message

Michael Jeanson Sept. 15, 2016, 10:47 p.m. UTC
Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 tests/bin/test_formats.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jérémie Galarneau Sept. 16, 2016, 8:56 p.m. UTC | #1
Merged, thanks!

Jérémie

On Thu, Sep 15, 2016 at 6:47 PM, Michael Jeanson <mjeanson at efficios.com> wrote:
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
>  tests/bin/test_formats.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/bin/test_formats.in b/tests/bin/test_formats.in
> index 81b924a..0d91898 100644
> --- a/tests/bin/test_formats.in
> +++ b/tests/bin/test_formats.in
> @@ -27,6 +27,6 @@ expected_formats=(text lttng-live dummy ctf-metadata ctf)
>  plan_tests ${#expected_formats[*]}
>
>  for format in "${expected_formats[@]}"; do
> -    "$BABELTRACE_BIN" --list | grep -qw "$format"
> +    "$BABELTRACE_BIN" --list | @GREP@ -qw "$format"
>      ok $? "Detect support for format \"$format\""
>  done
> --
> 2.7.4
>
diff mbox

Patch

diff --git a/tests/bin/test_formats.in b/tests/bin/test_formats.in
index 81b924a..0d91898 100644
--- a/tests/bin/test_formats.in
+++ b/tests/bin/test_formats.in
@@ -27,6 +27,6 @@  expected_formats=(text lttng-live dummy ctf-metadata ctf)
 plan_tests ${#expected_formats[*]}
 
 for format in "${expected_formats[@]}"; do
-    "$BABELTRACE_BIN" --list | grep -qw "$format"
+    "$BABELTRACE_BIN" --list | @GREP@ -qw "$format"
     ok $? "Detect support for format \"$format\""
 done