Tests: Fail test if sessiond is not running when it should
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 9 Dec 2020 03:05:22 +0000 (22:05 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 4 Jan 2021 22:46:24 +0000 (17:46 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I9b39bfe6bfb9f404fe2a32c27de0276386a36212

tests/utils/utils.sh

index 31087877d1639767086f88ed0821613f342c79f8..a1e142487024b8a6966321a8aba87e04f4a685eb 100644 (file)
@@ -646,7 +646,9 @@ function stop_lttng_sessiond_opt()
 
        if [ -z "$pids" ]; then
                if [ "$withtap" -eq "1" ]; then
-                       pass "No session daemon to kill"
+                       fail "No session daemon to kill"
+               else
+                       BAIL_OUT "No session daemon to kill"
                fi
                return 0
        fi
This page took 0.028436 seconds and 4 git commands to generate.