From d3d783bbd8783c0375cd076c03032d9bbefda94a Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Tue, 8 Dec 2020 22:05:22 -0500 Subject: [PATCH] Tests: Fail test if sessiond is not running when it should MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: I9b39bfe6bfb9f404fe2a32c27de0276386a36212 --- tests/utils/utils.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 31087877d..a1e142487 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -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 -- 2.34.1