Tests: fix validation trace path in kernel snapshot
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 4 Jul 2013 15:56:47 +0000 (11:56 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 4 Jul 2013 16:22:46 +0000 (12:22 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
tests/regression/tools/snapshots/test_kernel

index 6910b0e62b8c6469278a033083f20e6c1ed44d20..a12f0b8a8cc1f54b25a26edd47ec9aac9dc45fd2 100755 (executable)
@@ -48,7 +48,7 @@ function test_kernel_local_snapshot ()
        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
@@ -70,7 +70,7 @@ function test_kernel_local_snapshot_after_stop ()
        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
@@ -81,8 +81,8 @@ function test_kernel_local_snapshot_after_stop ()
 
 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
@@ -93,7 +93,7 @@ function test_kernel_local_snapshot_append_to_metadata ()
 
        # 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
@@ -106,7 +106,7 @@ function test_kernel_local_snapshot_append_to_metadata ()
        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
@@ -133,7 +133,7 @@ function test_kernel_1000_local_snapshots ()
                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
This page took 0.0269 seconds and 4 git commands to generate.