From: Michael Jeanson Date: Wed, 13 Mar 2019 21:50:55 +0000 (-0400) Subject: tap-driver.sh: flush stdout after each test result X-Git-Tag: v2.11.0-rc2~44 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bc7fc002cf65f1f66b2216f2fdd03f9cfe5ed61d;p=lttng-tools.git tap-driver.sh: flush stdout after each test result 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 Signed-off-by: Jérémie Galarneau --- diff --git a/config/tap-driver.sh b/config/tap-driver.sh index 32521614d..65037ab65 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";