local ret
- "$TESTDIR/../src/bin/lttng/$LTTNG_BIN" add-context -u \
- -s "$session_name" -c "$channel_name" \
- -t "$context_name" 1>"$OUTPUT_DEST" 2>"$ERROR_OUTPUT_DEST"
+ _run_lttng_cmd "$(lttng_client_log_file)" "$(lttng_client_err_file)" \
+ add-context -u -s "$session_name" -c "$channel_name" \
+ -t "$context_name"
ret=$?
if [ "$ret" == "4" ]; then
bail_out_if_no_babeltrace
-if [ "$(id -u)" == "0" ]; then
- isroot=1
-else
- isroot=0
-fi
-
start_lttng_sessiond
test_parsing_raw
-skip $isroot "Root access is needed. Skipping UST perf tests." 8 ||
+check_skip_kernel_test 8 "Skipping UST perf tests." ||
{
test_event_basic
}