From 1bc51806526857ed7051e1fb322ebabfc3353ae8 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Thu, 7 Sep 2017 11:59:24 +0530 Subject: Add delay to allow docker initialisation Add delay to allow docker initialisatino before running test case. Change-Id: Iccb993efb9d282215986c5dfe6469aa1c0a3aad6 Issue-Id: CLI-35 Signed-off-by: subhash kumar singh --- test/csit/plans/cli/sanity-check/setup.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/csit/plans/cli/sanity-check/setup.sh b/test/csit/plans/cli/sanity-check/setup.sh index 47b368cad..ca18f5176 100644 --- a/test/csit/plans/cli/sanity-check/setup.sh +++ b/test/csit/plans/cli/sanity-check/setup.sh @@ -18,7 +18,13 @@ source ${SCRIPTS}/common_functions.sh # Start auth -docker run -d --name cli -e CLI_MODE=daemon -p nexus3.onap.org:10001/onap/cli:1.1-STAGING-latest +docker run -d --name cli -e CLI_MODE=daemon nexus3.onap.org:10001/onap/cli:1.1-STAGING-latest + +# Wait for cli initialization +echo Wait for CLI initialization +for i in {1..40}; do + sleep 1 +done CLI_IP=`get-instance-ip.sh cli` -- cgit 1.2.3-korg