FIX: sleep 3 second to release create_venv.sh from chmod command 27/9127/1
authorgrakiss <grakiss.wanglei@huawei.com>
Wed, 3 Feb 2016 08:09:41 +0000 (03:09 -0500)
committergrakiss <grakiss.wanglei@huawei.com>
Wed, 3 Feb 2016 08:09:41 +0000 (03:09 -0500)
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>
testcases/vIMS/CI/vIMS.py

index ae2ad9d..a8ac97f 100644 (file)
@@ -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)