aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2016-02-03 03:09:41 -0500
committergrakiss <grakiss.wanglei@huawei.com>2016-02-03 03:09:41 -0500
commit33e92035fabfd256fc135903fde9daf30cad7211 (patch)
tree1a5a16ed537fce93e0cfaa8e707fc8cc3a6ac1e0
parentaac32f323461e43b5a9db436c7fab4a98d4b253e (diff)
FIX: sleep 3 second to release create_venv.sh from chmod command
sometimes vIMS failed to create venv for "Text file busy",it should be a side effect of last command "chmod +x ..." Change-Id: I6a94b644e89988efa92afc46e9fbdeb8564db89e Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
-rw-r--r--testcases/vIMS/CI/vIMS.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/testcases/vIMS/CI/vIMS.py b/testcases/vIMS/CI/vIMS.py
index ae2ad9d21..a8ac97f5c 100644
--- a/testcases/vIMS/CI/vIMS.py
+++ b/testcases/vIMS/CI/vIMS.py
@@ -364,6 +364,7 @@ def main():
logger.info("Prepare virtualenv for cloudify-cli")
cmd = "chmod +x " + VIMS_DIR + "create_venv.sh"
functest_utils.execute_command(cmd, logger)
+ time.sleep(3)
cmd = VIMS_DIR + "create_venv.sh " + VIMS_DATA_DIR
functest_utils.execute_command(cmd, logger)