diff mbox

[lttng-tools] Fix: test: proper redirection of stderr to stdout

Message ID 20170601221646.9005-1-jonathan.rajotte-julien@efficios.com
State Accepted, archived
Delegated to: Jérémie Galarneau
Headers show

Commit Message

Jonathan Rajotte June 1, 2017, 10:16 p.m. UTC
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien at efficios.com>
---
 tests/regression/tools/exclusion/test_exclusion | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jérémie Galarneau June 12, 2017, 10:16 p.m. UTC | #1
Merged in master and stable-2.10.

Thanks!
Jérémie

On 1 June 2017 at 18:16, Jonathan Rajotte
<jonathan.rajotte-julien at efficios.com> wrote:
> Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien at efficios.com>
> ---
>  tests/regression/tools/exclusion/test_exclusion | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/regression/tools/exclusion/test_exclusion b/tests/regression/tools/exclusion/test_exclusion
> index 2af9a93b..c155c25f 100755
> --- a/tests/regression/tools/exclusion/test_exclusion
> +++ b/tests/regression/tools/exclusion/test_exclusion
> @@ -79,7 +79,7 @@ function test_exclusion_fail
>         exclusions="$2"
>
>         create_lttng_session_ok $SESSION_NAME $trace_path
> -       $TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-event -u "$event_name" -s $sess_name -x "$exclusions" 2&>1 >/dev/null
> +       $TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-event -u "$event_name" -s $sess_name -x "$exclusions" >/dev/null 2>&1
>         res=$?
>         destroy_lttng_session_ok $SESSION_NAME
>
> --
> 2.11.0
>
diff mbox

Patch

diff --git a/tests/regression/tools/exclusion/test_exclusion b/tests/regression/tools/exclusion/test_exclusion
index 2af9a93b..c155c25f 100755
--- a/tests/regression/tools/exclusion/test_exclusion
+++ b/tests/regression/tools/exclusion/test_exclusion
@@ -79,7 +79,7 @@  function test_exclusion_fail
 	exclusions="$2"
 
 	create_lttng_session_ok $SESSION_NAME $trace_path
-	$TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-event -u "$event_name" -s $sess_name -x "$exclusions" 2&>1 >/dev/null
+	$TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-event -u "$event_name" -s $sess_name -x "$exclusions" >/dev/null 2>&1
 	res=$?
 	destroy_lttng_session_ok $SESSION_NAME