about summary refs log tree commit diff homepage
path: root/scripts/build/run-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/run-tests.sh')
-rwxr-xr-xscripts/build/run-tests.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build/run-tests.sh b/scripts/build/run-tests.sh
index b2062c2a..2cfd037f 100755
--- a/scripts/build/run-tests.sh
+++ b/scripts/build/run-tests.sh
@@ -58,8 +58,10 @@ run_tests() {
     coverage_setup "${build_dir}"
   fi
 
-  if [[ -n "${SANITIZER_BUILD+x}" ]]; then
-    for num in {1..10}; do sleep 120; echo 'Keep Travis alive'; done &
+  if [[ -n "${SANITIZER_BUILD+x}" ]]; then # Check for existance of variable
+    if [[ -n "${SANITIZER_BUILD}" ]]; then # Check for variable not being empty string
+      for num in {1..10}; do sleep 120; echo 'Keep Travis alive'; done &
+    fi
   fi
 
   make systemtests || return 1