aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2016-02-25 17:12:19 +0100
committerGerrit Code Review <gerrit@fd.io>2016-02-27 08:21:34 +0000
commit0a8f41c2178c4b3b6de8ba93ee499d234a8b208c (patch)
treeb2a05006ab6dc5f2d6af2dc96ede9d8c47caecd0 /resources/libraries
parent2550fba26984c5c32e7be9bd0a6c0c0d65658295 (diff)
Minor change in virtual env creation
- increase timeout for virtualenv creation - confirm successful virtualenv creation Change-Id: Ic973f97e23ccf35c677849f31251637bf8551fef Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r--resources/libraries/python/SetupFramework.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/libraries/python/SetupFramework.py b/resources/libraries/python/SetupFramework.py
index cb0d536987..399e7fd69d 100644
--- a/resources/libraries/python/SetupFramework.py
+++ b/resources/libraries/python/SetupFramework.py
@@ -79,10 +79,12 @@ def create_env_directory_at_node(node):
(ret_code, stdout, stderr) = ssh.exec_command(
'cd {0} && rm -rf env && virtualenv env && '
'. env/bin/activate && '
- 'pip install -r requirements.txt'.format(con.REMOTE_FW_DIR))
+ 'pip install -r requirements.txt'.format(con.REMOTE_FW_DIR), timeout=100)
if 0 != ret_code:
logger.error('Virtualenv creation error: {0}'.format(stdout + stderr))
raise Exception('Virtualenv setup failed')
+ else:
+ logger.console('Virtualenv created on {0}'.format(node['host']))
def install_dependencies(node):
"""TEMPORARY FUNCTION TO INSTALL DEPENDENCIES ON NODES BEFORE THE VIRL