X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FSetupFramework.py;h=399e7fd69dd27d3ee3f8c6ab4d2659dd2ad366a5;hp=cb0d5369877b1cde7e0780a281a8a256dd70c599;hb=0a8f41c2178c4b3b6de8ba93ee499d234a8b208c;hpb=a06a031c5865f34c2a651ef170778149fb8f0396 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