From: Kienan Stewart Date: Mon, 25 Sep 2023 15:00:17 +0000 (-0400) Subject: tests: Use `--no-wait` when destroying sessions in relayd-grouping X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f52a7d1581ec1e62d8563fdcd455fec39eeadb93;p=lttng-tools.git tests: Use `--no-wait` when destroying sessions in relayd-grouping By using `--no-wait`, the test completes about 22s faster on my development machine. Signed-off-by: Kienan Stewart Signed-off-by: Jérémie Galarneau Change-Id: I53cb0665bbb5a038fbe8da6ece924579e8e91549 --- diff --git a/tests/regression/tools/relayd-grouping/test_ust b/tests/regression/tools/relayd-grouping/test_ust index 09929e25d..fe40bd551 100755 --- a/tests/regression/tools/relayd-grouping/test_ust +++ b/tests/regression/tools/relayd-grouping/test_ust @@ -74,7 +74,7 @@ function test_ust_uid_live () $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME*" @@ -113,7 +113,7 @@ function test_ust_pid_live () $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME*" @@ -153,7 +153,7 @@ function test_ust_uid_live_custom_output () $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME-*/$custom_output" @@ -192,7 +192,7 @@ function test_ust_uid_streaming () $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME*" @@ -231,7 +231,7 @@ function test_ust_pid_streaming () $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME*" @@ -271,7 +271,7 @@ function test_ust_uid_streaming_custom_output () $TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME-*/$custom_output" @@ -311,7 +311,7 @@ function test_ust_uid_streaming_rotate () rotate_session_ok "$session_name" stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME*" @@ -353,7 +353,7 @@ function test_ust_uid_streaming_rotate_custom_output () stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME-*/$custom_output" @@ -393,7 +393,7 @@ function test_ust_pid_streaming_rotate () rotate_session_ok "$session_name" stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME*" @@ -433,7 +433,7 @@ function test_ust_uid_streaming_snapshot () lttng_snapshot_record "$session_name" stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME*" @@ -489,7 +489,7 @@ function test_ust_pid_streaming_snapshot () wait stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME-*/snapshot-1*" @@ -534,7 +534,7 @@ function test_ust_uid_streaming_snapshot_add_output_default_name () lttng_snapshot_record "$session_name" stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME-*/snapshot-1*" @@ -577,7 +577,7 @@ function test_ust_uid_streaming_snapshot_add_output_custom_name () lttng_snapshot_record "$session_name" stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait # When session name is automatic, the actual directory is "auto", not # auto-. @@ -623,7 +623,7 @@ function test_ust_uid_streaming_snapshot_add_output_custom_name_custom_output () lttng_snapshot_record "$session_name" stop_lttng_tracing_ok "$session_name" - destroy_lttng_session_ok "$session_name" + destroy_lttng_session_ok "$session_name" --no-wait if [ "$grouping" = "$GROUP_BY_SESSION" ]; then validate_trace "$EVENT_NAME" "$TRACE_PATH/$session_name/$HOSTNAME-*/$custom_output/$snapshot_name*"