From: Francis Deslauriers Date: Mon, 19 Apr 2021 18:58:31 +0000 (-0400) Subject: Fix: tests: quote variable in case it's not set X-Git-Tag: v2.11.7~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c5e66755fab6ca716d6059f70c6440daa05ffb88;p=lttng-tools.git Fix: tests: quote variable in case it's not set Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: I34d39498a271e3a1644f49ac7f86f3e7f6d37a0f --- diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 9bfd450e0..ea40fce9b 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -1844,7 +1844,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