From 167c84b755bb7e05533feae13729471437b5d83d 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: Ib0751699eb9deb02f47739062c99dbb8535c3163 --- 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 be83e73a6..d57cb3f34 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -2102,7 +2102,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