summaryrefslogtreecommitdiffstats
path: root/test/ete/scripts/remote/run-robot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/ete/scripts/remote/run-robot.sh')
-rwxr-xr-xtest/ete/scripts/remote/run-robot.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/ete/scripts/remote/run-robot.sh b/test/ete/scripts/remote/run-robot.sh
new file mode 100755
index 000000000..ff7223a17
--- /dev/null
+++ b/test/ete/scripts/remote/run-robot.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+cd /opt
+
+if [ ! -x /opt/demo.sh ]; then
+ echo "Robot VM not initialized"
+ exit 2
+fi
+
+if [ ! -d eteshare/logs/demo ]; then
+ echo "09d8566ea45e43aa974cf447ed591d77" > /opt/config/openstack_tenant_id.txt
+ 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
+fi
+
+/opt/ete.sh health