From 6eb3a2d05b76cce85426b4e15bf3effee9686b82 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 26 Nov 2015 07:30:51 +0100 Subject: [PATCH] Simplify ping usage for service VM check in CI Just rely on the return code from "ping" instead of parsing it's output when checking the service VM during the CI run. Change-Id: I20f144687662a0dda5fdfc0293ab578009658c1b --- contrib/ci/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ci/common.sh b/contrib/ci/common.sh index ecdf59ec3f..434ac2c76b 100755 --- a/contrib/ci/common.sh +++ b/contrib/ci/common.sh @@ -13,7 +13,7 @@ function manila_check_service_vm_availability { wait_timeout=300 available='false' while (( wait_timeout > 0 )) ; do - if [[ "$(ping -w 1 $1)" =~ "1 received" ]]; then + if ping -w 1 $1; then available='true' break fi