diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-11-09 11:42:15 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2017-11-09 11:42:15 -0800 |
commit | 4aa2aeedfffa45e2e2022a070bcc350b2a0210e5 (patch) | |
tree | 1dee0837ff5261c5cd921b4e8f3bea257b0d5b21 /test/ete/scripts/remote | |
parent | a5f972e99962c2fe3bb426a041eb4ba344f617fd (diff) |
Update robot initialization detection
Change-Id: I0b19fde5d36b4b5582c983979a336eddab46f87c
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/ete/scripts/remote')
-rwxr-xr-x | test/ete/scripts/remote/run-robot.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/ete/scripts/remote/run-robot.sh b/test/ete/scripts/remote/run-robot.sh index ff7223a17..8eebd9f3f 100755 --- a/test/ete/scripts/remote/run-robot.sh +++ b/test/ete/scripts/remote/run-robot.sh @@ -1,9 +1,10 @@ -#!/bin/bash +#!/bin/bash -x cd /opt -if [ ! -x /opt/demo.sh ]; then - echo "Robot VM not initialized" +docker ps | grep -q openecompete_container +if [ ! $? -eq 0 ]; then + echo "Robot not initialized" exit 2 fi @@ -12,7 +13,8 @@ if [ ! -d eteshare/logs/demo ]; then echo "gary_wu" > /opt/config/openstack_username.txt echo $OS_PASSWORD_INPUT > /opt/config/openstack_password.txt /bin/bash /opt/eteshare/config/vm_config2robot.sh - echo "test" | /opt/demo.sh init_robot + # set robot VM http server password + echo "admin" | /opt/demo.sh init_robot fi /opt/ete.sh health |