From e35e7fb9d37356f9f2c5579c8b2410f8fc18675e Mon Sep 17 00:00:00 2001
From: Steven Murray <Steven.Murray@cern.ch>
Date: Fri, 10 Aug 2018 18:03:13 +0200
Subject: [PATCH] ctaeos-mgm.sh now tests for booted and online

---
 .../docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh        | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
index fd9f3bbc52..3ea7612ae6 100755
--- a/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
+++ b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
@@ -186,15 +186,13 @@ fi
   eos mkdir ${EOS_TMP_DIR}
   eos chmod 777 ${EOS_TMP_DIR}
 
-  echo "Waiting for the EOS disk filesystem using /fst to come on-line"
-  while test 1 != `eos fs ls /fst | grep booted | wc -l`; do
+  echo "Waiting for the EOS disk filesystem using /fst to boot and come on-line"
+  while test 1 != `eos fs ls /fst | egrep 'booted.*online' | wc -l`; do
     echo "Sleeping 1 second"
     sleep 1
   done
 
 # test EOS
-# eos slow behind us and we need to give it time to be ready
-  sleep 10
   eos -b node ls
   xrdcp /etc/group root://${eoshost}:/${EOS_TMP_DIR}/testFile
 
-- 
GitLab