From 68ad3d2e18e789da89b77a8289ae1065ea106426 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Mon, 19 Apr 2021 14:58:31 -0400 Subject: [PATCH] Fix: tests: quote variable in case it's not set 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: I34d39498a271e3a1644f49ac7f86f3e7f6d37a0f --- tests/utils/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 0152ed4d6..3ad9abe33 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -1978,7 +1978,7 @@ function rotate_session_fail () function destructive_tests_enabled () { - if [ ${LTTNG_ENABLE_DESTRUCTIVE_TESTS} = "will-break-my-system" ]; then + if [ "$LTTNG_ENABLE_DESTRUCTIVE_TESTS" = "will-break-my-system" ]; then return 0 else return 1 -- 2.34.1