X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Ftest_notification_multi_app;h=0c578d223f75ad564629dc2e8bb1731da20eff0a;hb=46824804609dbbda322577bf939b7fa029fc0bcd;hp=600b0f69c256f64ce43a2214f4cd8eade3862b32;hpb=7a84a58a4e9e2ccdca5a263d51e7a307a016c6f4;p=lttng-tools.git diff --git a/tests/regression/tools/notification/test_notification_multi_app b/tests/regression/tools/notification/test_notification_multi_app index 600b0f69c..0c578d223 100755 --- a/tests/regression/tools/notification/test_notification_multi_app +++ b/tests/regression/tools/notification/test_notification_multi_app @@ -54,7 +54,7 @@ print_test_banner "$TEST_DESC" app_pids=() -function kernel_event_generator_toogle_state +function kernel_event_generator_toggle_state { kernel_event_generator_suspended=$((kernel_event_generator_suspended==0)) @@ -63,7 +63,7 @@ function kernel_event_generator { state_file=$1 kernel_event_generator_suspended=0 - trap kernel_event_generator_toogle_state SIGUSR1 + trap kernel_event_generator_toggle_state SIGUSR1 while (true); do if [[ $kernel_event_generator_suspended -eq "1" ]]; then @@ -78,7 +78,7 @@ function kernel_event_generator done } -function ust_event_generator_toogle_state +function ust_event_generator_toggle_state { ust_event_generator_suspended=$((ust_event_generator_suspended==0)) @@ -87,7 +87,7 @@ function ust_event_generator { state_file=$1 ust_event_generator_suspended=0 - trap ust_event_generator_toogle_state SIGUSR1 + trap ust_event_generator_toggle_state SIGUSR1 trap "exit" SIGTERM SIGINT while (true); do if [[ $ust_event_generator_suspended -eq "1" ]]; then @@ -297,7 +297,6 @@ function test_multi_app () print_errors $output_dir "${high_output_file_pattern}" fi - rm -rf $output_dir destroy_lttng_session_ok $SESSION_NAME stop_lttng_sessiond @@ -305,6 +304,8 @@ function test_multi_app () for pipe in "${consumerd_pipe[@]}"; do rm -rf "${pipe}" done + + rm -rf $output_dir } function test_multi_app_ust () @@ -453,7 +454,6 @@ function test_on_register_evaluation () print_errors "${high_output_file_pattern}" fi - rm -rf $output_dir destroy_lttng_session_ok $SESSION_NAME stop_lttng_sessiond @@ -465,6 +465,7 @@ function test_on_register_evaluation () rm -rf "${pipe}" done + rm -rf "$output_dir" }