about summary refs log tree commit diff homepage
path: root/scripts/build
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2020-01-23 15:31:27 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2020-02-13 17:39:21 +0000
commitef364f008625e67810ec3961a74fe040defd25b0 (patch)
tree670f157e01a9cbd5c60c2d37cdd15cf1b464eab4 /scripts/build
parentfc90ba706d4d15eb8337186524ff557f37b43fe8 (diff)
downloadklee-ef364f008625e67810ec3961a74fe040defd25b0.tar.gz
Do not wait if SANITIZER_BUILD is empty
Diffstat (limited to 'scripts/build')
-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