summaryrefslogtreecommitdiffstats
path: root/testcases/vIMS/CI/orchestrator.py
diff options
context:
space:
mode:
authorboucherv <valentin.boucher@orange.com>2016-01-12 10:51:42 +0100
committervalentin boucher <valentin.boucher@orange.com>2016-01-12 10:55:31 +0000
commit7e5a307be4ac82a8f7a91c4d2345cdc29d1bf817 (patch)
tree6852ad331f357e3ecd926acc7200fdfe43bd43d8 /testcases/vIMS/CI/orchestrator.py
parent0f4828114b80b9077d451692843847dd692f94b9 (diff)
Add timeout for cloudify-manager deployment
FUNCTEST-122 Change-Id: I837b286fa83eb0b6d18749d1070198ed6b653ba1 Signed-off-by: boucherv <valentin.boucher@orange.com> (cherry picked from commit 65f24166f10f7b8ba0e53591b2c88b11388dec9c)
Diffstat (limited to 'testcases/vIMS/CI/orchestrator.py')
-rw-r--r--testcases/vIMS/CI/orchestrator.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testcases/vIMS/CI/orchestrator.py b/testcases/vIMS/CI/orchestrator.py
index c62cba4f7..ab0b448fa 100644
--- a/testcases/vIMS/CI/orchestrator.py
+++ b/testcases/vIMS/CI/orchestrator.py
@@ -91,14 +91,14 @@ class orchestrator:
if self.logger:
self.logger.info("Launching the cloudify-manager deployment")
-
- script = "source " + self.testcase_dir + "venv_cloudify/bin/activate; "
+ script = "set -e; "
+ script += "source " + self.testcase_dir + "venv_cloudify/bin/activate; "
script += "cd " + self.testcase_dir + "; "
script += "cfy init -r; "
script += "cd cloudify-manager-blueprint; "
script += "cfy local create-requirements -o requirements.txt -p openstack-manager-blueprint.yaml; "
script += "pip install -r requirements.txt; "
- script += "cfy bootstrap --install-plugins -p openstack-manager-blueprint.yaml -i inputs.yaml; "
+ script += "timeout 1800 cfy bootstrap --install-plugins -p openstack-manager-blueprint.yaml -i inputs.yaml; "
cmd = "/bin/bash -c '" + script + "'"
execute_command(cmd, self.logger)