From 0a8f41c2178c4b3b6de8ba93ee499d234a8b208c Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Thu, 25 Feb 2016 17:12:19 +0100 Subject: Minor change in virtual env creation - increase timeout for virtualenv creation - confirm successful virtualenv creation Change-Id: Ic973f97e23ccf35c677849f31251637bf8551fef Signed-off-by: Jan Gelety --- resources/libraries/python/SetupFramework.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'resources/libraries') 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 -- cgit 1.2.3-korg