Fix: tests: quote variable in case it's not set
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 19 Apr 2021 18:58:31 +0000 (14:58 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 22 Apr 2021 01:24:08 +0000 (21:24 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ib0751699eb9deb02f47739062c99dbb8535c3163

tests/utils/utils.sh

index be83e73a622637812feb51fe3ff35d99029fc48a..d57cb3f344192e0c7e730d07a8c6c21b4a646c69 100644 (file)
@@ -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
This page took 0.027243 seconds and 4 git commands to generate.