summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2016-02-03 03:09:41 -0500
committerLeo wang <grakiss.wanglei@huawei.com>2016-02-03 08:13:35 +0000
commitffd8780ed250de15aa50632ba761666ee4f30e68 (patch)
tree1a5a16ed537fce93e0cfaa8e707fc8cc3a6ac1e0
parentc3611ee05a6a19e5d3e376ebd3bd352b38afec76 (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)