aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/scripts/common_functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/csit/scripts/common_functions.sh')
-rwxr-xr-xtest/csit/scripts/common_functions.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/csit/scripts/common_functions.sh b/test/csit/scripts/common_functions.sh
index 4293a526c..684c41841 100755
--- a/test/csit/scripts/common_functions.sh
+++ b/test/csit/scripts/common_functions.sh
@@ -250,3 +250,14 @@ function bypass_ip_adress ()
export no_proxy=$no_proxy,$ip_address
fi
}
+
+function wait_for_service_init ()
+{
+ local service_url=$1
+
+ for delay in {1..50}; do
+ curl -sS ${service_url} && break
+ echo "$delay - Waiting for $service_url..."
+ sleep $delay
+ done
+}