From: Holger Levsen Date: Thu, 8 Nov 2012 12:44:35 +0000 (+0100) Subject: fixup: check for 10min if testserver came up again X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=e27be13d4bff14c0140ed65dcd0d021398e80ffa;p=profitbricks%2Fjenkins-build-scripts.git fixup: check for 10min if testserver came up again --- diff --git a/liveboot_testdeploy.sh b/liveboot_testdeploy.sh index 898e533..f5e99fa 100755 --- a/liveboot_testdeploy.sh +++ b/liveboot_testdeploy.sh @@ -33,12 +33,12 @@ ping -c 1 $TESTSERVER || true for i in $(seq 1 10) ; do sleep 60 - if $(ping -c 1 $TESTSERVER) ; then + if [ $(ping -c 1 $TESTSERVER) ] ; then break fi done -if $(ping -c 1 $TESTSERVER) ; then +if [ $(ping -c 1 $TESTSERVER) ] ; then figlet Ok echo "$TESTSERVER pings again, so we assume it's up." echo "Please continue manual testing of $(basedir $SOURCE_DIR)"