Stop modifying unix perm in cloudify_ims 25/36825/2
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 2 Jul 2017 09:45:18 +0000 (11:45 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 2 Jul 2017 09:51:07 +0000 (11:51 +0200)
It should be noted that several mockey patches should have been added
in the related unit tests.

Change-Id: I04bf003bc6beed1580c5d052c588f6f4ac23f768
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/opnfv_tests/vnf/ims/cloudify_ims.py

index 89c84af..7d7ce33 100644 (file)
@@ -10,7 +10,6 @@
 import logging
 import os
 import sys
-import time
 
 import requests
 import yaml
@@ -169,10 +168,7 @@ class CloudifyIms(clearwater_ims_base.ClearwaterOnBoardingBase):
 
         self.logger.info("Prepare virtualenv for cloudify-cli")
         venv_scrit_dir = os.path.join(self.case_dir, "create_venv.sh")
-        cmd = "chmod +x " + venv_scrit_dir
-        ft_utils.execute_command(cmd)
-        time.sleep(3)
-        cmd = venv_scrit_dir + " " + self.data_dir
+        cmd = "bash {} {}".format(venv_scrit_dir, self.data_dir)
         ft_utils.execute_command(cmd)
 
         cfy.download_manager_blueprint(