Test: mi: inverted logic in stop validation test
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 26 Apr 2023 02:24:17 +0000 (22:24 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 26 Apr 2023 17:55:24 +0000 (13:55 -0400)
Stopping a session twice should succeed (no-op). Moreover, the test
mentions it tests a 'start' while it tests a 'stop' operation.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I4c8f19f0ecc181921fb5e3dd4f882e3c2285adcd

tests/regression/tools/mi/test_mi

index 2c469f108b7969276974b3d65c22d9576800ab82..faeb3d09bc5f7bac534cfa742e26ad7771233fb5 100755 (executable)
@@ -656,14 +656,14 @@ function test_start_stop ()
        ok $? "Mi test: enabled element : $result expected: false"
 
        #Test failing stop command
-       stop_lttng_tracing_fail $session_name
+       stop_lttng_tracing_ok $session_name
        $MI_VALIDATE $OUTPUT_DEST
-       ok $? "Mi test: failed stop xsd validation"
+       ok $? "Mi test: stop warning xsd validation"
 
-       #Expect a false element
+       #Expect a true element
        extract_xml $OUTPUT_DEST $XPATH_COMMAND_SUCCESS result
-       test "$result" = "false"
-       ok $? "Mi test: mi report failure on start command as expected"
+       test "$result" = "true"
+       ok $? "Mi test: mi reports success on stop command as expected"
 
        #Teardown
        OUTPUT_DEST=$DEVNULL
This page took 0.026236 seconds and 4 git commands to generate.