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.12.4~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=68ad3d2e18e789da89b77a8289ae1065ea106426;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 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