X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftools%2Fstreaming%2Frun-kernel;h=7d6324d296e79609b3d6a5b226ee128c7a2c2d4e;hb=b2068598da7219137071ddd7f83ae72232060fe3;hp=b64f233b8fa612f27ff307b56e8409c36e5cac74;hpb=fb3268e3029673dbb7c6d43b2dcde5e5f9eec07a;p=lttng-tools.git diff --git a/tests/tools/streaming/run-kernel b/tests/tools/streaming/run-kernel index b64f233b8..7d6324d29 100755 --- a/tests/tools/streaming/run-kernel +++ b/tests/tools/streaming/run-kernel @@ -80,6 +80,15 @@ function test_kernel_before_start () sleep 1 stop_lttng_tracing $SESSION_NAME destroy_lttng_session $SESSION_NAME + + # We can not predict _yet_ when the trace is available so we have to do a + # arbitratry sleep to validate the trace. + echo -n "Waiting 3 seconds for the trace to be written on disk " + for i in `seq 1 3`; do + echo -n "." + sleep 1 + done + echo "" } # Deactivated since this feature is not yet available where we can enable