destroy_lttng_session $SESSION_NAME
# Validate test
- validate_trace $EVENT_NAME $TRACE_PATH/snapshot/
+ validate_trace $EVENT_NAME $TRACE_PATH/
if [ $? -eq 0 ]; then
# Only delete if successful
rm -rf $TRACE_PATH
destroy_lttng_session $SESSION_NAME
# Validate test
- validate_trace $EVENT_NAME $TRACE_PATH/snapshot/
+ validate_trace $EVENT_NAME $TRACE_PATH/
if [ $? -eq 0 ]; then
# Only delete if successful
rm -rf $TRACE_PATH
function test_kernel_local_snapshot_append_to_metadata ()
{
- EVENT1=sched_switch
- EVENT2=sched_process_exec
+ local EVENT1=sched_switch
+ local EVENT2=sched_process_exit
diag "Test local kernel snapshots with one event $EVENT1"
create_lttng_session_no_output $SESSION_NAME
# first snapshot with only 1 event
lttng_snapshot_record $SESSION_NAME
- validate_trace $EVENT_NAME $TRACE_PATH/snapshot/
+ validate_trace $EVENT_NAME $TRACE_PATH/
if [ $? -eq 0 ]; then
# Only delete if successful
rm -rf $TRACE_PATH
lttng_enable_kernel_event $SESSION_NAME $EVENT2 $CHANNEL_NAME
rm -rf $TRACE_PATH/snapshot/* 2>/dev/null
lttng_snapshot_record $SESSION_NAME
- validate_trace "${EVENT1},${EVENT2}" $TRACE_PATH/snapshot/
+ validate_trace "${EVENT1},${EVENT2}" $TRACE_PATH/
if [ $? -eq 0 ]; then
# Only delete if successful
rm -rf $TRACE_PATH
rm -rf $TRACE_PATH/snapshot/* 2>/dev/null
lttng_snapshot_record $SESSION_NAME
# Validate test
- validate_trace $EVENT_NAME $TRACE_PATH/snapshot/
+ validate_trace $EVENT_NAME $TRACE_PATH/
if [ $? -eq 0 ]; then
# Only delete if successful
rm -rf $TRACE_PATH