Load: test that name override does not have side effects
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 24 Nov 2016 19:27:28 +0000 (14:27 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 25 Nov 2016 22:04:56 +0000 (17:04 -0500)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/tools/save-load/test_load

index 005ec4c9c84d6f335589608884d42a21d72babb0..2e51b2e0d2261133f5c34462baff945b44bae899 100755 (executable)
@@ -30,7 +30,7 @@ EVENT_NAME="tp:tptest"
 
 DIR=$(readlink -f $TESTDIR)
 
-NUM_TESTS=66
+NUM_TESTS=67
 
 source $TESTDIR/utils/utils.sh
 
@@ -306,6 +306,7 @@ function test_override_session_name()
 {
        diag "Test session name override"
        local override_name="PinkyAndTheBrain"
+       local output_path="/tmp/lttng/load-42-1"
 
        local mi_output_file=$(mktemp)
        if [ $? -ne 0 ]; then
@@ -323,6 +324,12 @@ function test_override_session_name()
 
        test "${mi_result}" = "${override_name}"
        ok $? "Override name successful  [${SESSION_NAME} to ${override_name}]"
+
+       # Make sure that the name override did not change something else
+       mi_result=$($CURDIR/../mi/extract_xml $mi_output_file "//lttng:command/lttng:output/lttng:sessions/lttng:session/lttng:path")
+       test "${mi_result}" = "${output_path}"
+       ok $? "Output path is not affected by name override"
+
        destroy_lttng_session_ok "${override_name}"
 
        diag "Test session name override with all (Do not permit)"
@@ -339,10 +346,10 @@ TESTS=(
        test_all_load
        test_overwrite
        test_trackers
+       test_override_session_name
        test_override_url_normal
        test_override_url_snapshot
        test_override_url_live
-       test_override_session_name
 )
 
 for fct_test in ${TESTS[@]};
This page took 0.025563 seconds and 4 git commands to generate.