* Re: [PATCH lttng-tools] tap-driver.sh: flush stdout after each test result
[not found] <20190314154134.20191-1-mjeanson@efficios.com>
@ 2019-03-14 16:32 ` Jonathan Rajotte-Julien
2019-03-29 18:31 ` Jérémie Galarneau
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Rajotte-Julien @ 2019-03-14 16:32 UTC (permalink / raw)
To: Michael Jeanson; +Cc: lttng-dev, jgalar
On Thu, Mar 14, 2019 at 11:41:34AM -0400, Michael Jeanson wrote:
> This is useful in a CI system where stdout is fully buffered and you
> look at the console output to see which test is hanging.
>
> Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Acked-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
> ---
> config/tap-driver.sh | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/config/tap-driver.sh b/config/tap-driver.sh
> index 32521614..65037ab6 100755
> --- a/config/tap-driver.sh
> +++ b/config/tap-driver.sh
> @@ -275,6 +275,9 @@ function report(result, details)
> msg = msg " " details
> # Output on console might be colorized.
> print decorate_result(result) msg
> + # Flush stdout after each test result, this is useful when stdout
> + # is buffered, for example in a CI system.
> + fflush()
> # Log the result in the log file too, to help debugging (this is
> # especially true when said result is a TAP error or "Bail out!").
> print result msg | "cat >&3";
> --
> 2.17.1
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Jonathan Rajotte-Julien
EfficiOS
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH lttng-tools] tap-driver.sh: flush stdout after each test result
[not found] <20190314154134.20191-1-mjeanson@efficios.com>
2019-03-14 16:32 ` [PATCH lttng-tools] tap-driver.sh: flush stdout after each test result Jonathan Rajotte-Julien
@ 2019-03-29 18:31 ` Jérémie Galarneau
1 sibling, 0 replies; 3+ messages in thread
From: Jérémie Galarneau @ 2019-03-29 18:31 UTC (permalink / raw)
To: Michael Jeanson; +Cc: lttng-dev, jgalar
Merged in master, stable-2.11, stable-2.10, and stable-2.9.
Thanks!
Jérémie
On Thu, Mar 14, 2019 at 11:41:34AM -0400, Michael Jeanson wrote:
> This is useful in a CI system where stdout is fully buffered and you
> look at the console output to see which test is hanging.
>
> Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
> ---
> config/tap-driver.sh | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/config/tap-driver.sh b/config/tap-driver.sh
> index 32521614..65037ab6 100755
> --- a/config/tap-driver.sh
> +++ b/config/tap-driver.sh
> @@ -275,6 +275,9 @@ function report(result, details)
> msg = msg " " details
> # Output on console might be colorized.
> print decorate_result(result) msg
> + # Flush stdout after each test result, this is useful when stdout
> + # is buffered, for example in a CI system.
> + fflush()
> # Log the result in the log file too, to help debugging (this is
> # especially true when said result is a TAP error or "Bail out!").
> print result msg | "cat >&3";
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH lttng-tools] tap-driver.sh: flush stdout after each test result
@ 2019-03-14 15:41 Michael Jeanson
0 siblings, 0 replies; 3+ messages in thread
From: Michael Jeanson @ 2019-03-14 15:41 UTC (permalink / raw)
To: lttng-dev; +Cc: jgalar
This is useful in a CI system where stdout is fully buffered and you
look at the console output to see which test is hanging.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
---
config/tap-driver.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/config/tap-driver.sh b/config/tap-driver.sh
index 32521614..65037ab6 100755
--- a/config/tap-driver.sh
+++ b/config/tap-driver.sh
@@ -275,6 +275,9 @@ function report(result, details)
msg = msg " " details
# Output on console might be colorized.
print decorate_result(result) msg
+ # Flush stdout after each test result, this is useful when stdout
+ # is buffered, for example in a CI system.
+ fflush()
# Log the result in the log file too, to help debugging (this is
# especially true when said result is a TAP error or "Bail out!").
print result msg | "cat >&3";
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-03-29 18:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20190314154134.20191-1-mjeanson@efficios.com>
2019-03-14 16:32 ` [PATCH lttng-tools] tap-driver.sh: flush stdout after each test result Jonathan Rajotte-Julien
2019-03-29 18:31 ` Jérémie Galarneau
2019-03-14 15:41 Michael Jeanson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.