function test_python_before_start ()
{
- local ready_file=$(mktemp --tmpdir -u)
- local go_file=$(mktemp --tmpdir -u)
+ local ready_file=$(mktemp -u -t)
+ local go_file=$(mktemp -u -t)
diag "Test Python application BEFORE tracing starts"
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
function test_python_trigger_notify_action
{
uid=$(id --user)
- tmp_expected_stdout=$(mktemp --tmpdir -t test_list_triggers_python_cli_expected_stdout.XXXXXX)
+ tmp_expected_stdout=$(mktemp -t test_list_triggers_python_cli_expected_stdout.XXXXXX)
diag "Test Python trigger with notify action"
lttng_add_trigger_ok "my_python_trigger" \
- --condition event-rule-matches --domain=python --action notify
+ --condition event-rule-matches --type=python --action notify
cat > "${tmp_expected_stdout}" <<- EOF
- name: my_python_trigger
owner uid: ${uid}
condition: event rule matches
- rule: * (type: tracepoint, domain: python)
+ rule: * (type: python:logging)
+ errors: none
actions:
notify
errors: none
do
for fct_test in ${tests[@]};
do
- TRACE_PATH=$(mktemp --tmpdir -d tmp.test_python_logging_trace_path.XXXXXX)
+ TRACE_PATH=$(mktemp -d -t tmp.test_python_logging_trace_path.XXXXXX)
diag "(Python $python_version)"
${fct_test} $python_version