loglevel=$3
channel_name=$4
- if [ -z $channel_name ]; then
+ if [ -z "$channel_name" ]; then
# default channel if none specified
chan=""
else
- chan="-c $channel_name"
+ chan="--channel $channel_name"
fi
- $TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-event --loglevel-only $loglevel "$event_name" $chan -s $sess_name -p >$OUTPUT_DEST
+ _run_lttng_cmd "$(lttng_client_log_file)" "$(lttng_client_err_file)" enable-event \
+ --loglevel-only "$loglevel" "$event_name" $chan --session "$sess_name" --python
ok $? "Enable Python event $event_name for session $sess_name with loglevel-only $loglevel"
}
local event_name="$2"
local filter="$3"
- $TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-event "$event_name" -s $sess_name -p --filter "$filter" >$OUTPUT_DEST
+ _run_lttng_cmd "$(lttng_client_log_file)" "$(lttng_client_err_file)" enable-event \
+ "$event_name" --session "$sess_name" --python --filter "$filter"
ok $? "Enable event $event_name with filter $filter for session $sess_name"
}
local filter="$3"
local loglevel="$4"
- $TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-event --loglevel-only $loglevel "$event_name" -s $sess_name -p --filter "$filter" >$OUTPUT_DEST
+ _run_lttng_cmd "$(lttng_client_log_file)" "$(lttng_client_err_file)" enable-event \
+ --loglevel-only "$loglevel" "$event_name" --session "$sess_name" \
+ --python --filter "$filter"
ok $? "Enable event $event_name with filter \"$filter\" and loglevel-only $loglevel for session $sess_name"
}