X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fexclusion%2Ftest_exclusion;h=0c9bdc8294effaa40260f0e8a2d587135a92661f;hp=1bfb63533761fed9c042b63ba7f87daf1f837419;hb=c125de8f5c0dc9ba3ada63e9317e468ffb9e335a;hpb=33e557114a2ba28e26e220a833e8a449c78b8b65 diff --git a/tests/regression/tools/exclusion/test_exclusion b/tests/regression/tools/exclusion/test_exclusion index 1bfb63533..0c9bdc829 100755 --- a/tests/regression/tools/exclusion/test_exclusion +++ b/tests/regression/tools/exclusion/test_exclusion @@ -53,7 +53,7 @@ function dry_run run_apps stop_lttng_tracing_ok $SESSION_NAME - nb_events=$(babeltrace $trace_path | wc -l) + nb_events=$("$BABELTRACE_BIN" $trace_path | wc -l) if [ "$nb_events" -ne "0" ]; then ok 0 "Events were found during the dry run without exclusion" else @@ -86,7 +86,7 @@ function test_exclusion # Destroy session destroy_lttng_session_ok $SESSION_NAME - stats=`babeltrace $trace_path | $STATS_BIN --tracepoint "$event_name_expected_to_be_missing" | grep -v index 2> /dev/null` + stats=`"$BABELTRACE_BIN" $trace_path | $STATS_BIN --tracepoint "$event_name_expected_to_be_missing" | grep -v index 2> /dev/null` if [ ! -z "$stats" ]; then fail "Excluded event \"$event_name_expected_to_be_missing\" was found in trace!" else @@ -139,13 +139,16 @@ function test_exclusion_tracing_started # Destroy session destroy_lttng_session_ok $SESSION_NAME - stats=$(babeltrace $trace_path | $STATS_BIN --tracepoint "$event_name_expected_to_be_missing" | grep -v index 2> /dev/null) + stats=$("$BABELTRACE_BIN" $trace_path | $STATS_BIN --tracepoint "$event_name_expected_to_be_missing" | grep -v index 2> /dev/null) if [ ! -z "$stats" ]; then fail "Excluded event \"$event_name_expected_to_be_missing\" was found in trace!" else ok 0 "Validate trace exclusion output" rm -rf $trace_path fi + + rm -f $file_wait_before_first + rm -f $file_create_in_main } function test_exclusion_fail @@ -171,6 +174,8 @@ plan_tests $NUM_TESTS print_test_banner "$TEST_DESC" +bail_out_if_no_babeltrace + start_lttng_sessiond diag "Enable event without exclusion"