]> git.lttng.org Git - lttng-tools.git/commitdiff
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>
Tue, 11 May 2021 17:29:32 +0000 (13:29 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I34d39498a271e3a1644f49ac7f86f3e7f6d37a0f

tests/utils/utils.sh

index 9bfd450e06cda5164bfb86b5638688b8880f391c..ea40fce9b5cd9131ed68e3c7de4fdd2cda9eaa3f 100644 (file)
@@ -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
This page took 0.033172 seconds and 4 git commands to generate.