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.13.0-rc1~53 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=167c84b755bb7e05533feae13729471437b5d83d Fix: tests: quote variable in case it's not set Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau Change-Id: Ib0751699eb9deb02f47739062c99dbb8535c3163 --- 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