summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2016-06-03 03:25:51 -0400
committerMatthewLi <matthew.lijun@huawei.com>2016-06-03 03:26:31 -0400
commit178ce402f58e725bc6c4266be2b5dfee91919dc1 (patch)
tree74e5db8ea92784200cce598672cf71e199cd82dd
parent6ceb95d0aea63e6d3c54b07577330b6566f20192 (diff)
run vstf test case
JIRA: BOTTLENECK-70 Change-Id: Iade7d7a97f3b0ba54be33b37cf80c1530c410b95 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
-rwxr-xr-xtestsuites/rubbos/run_rubbos.py4
-rwxr-xr-xtestsuites/vstf/run_vstf.py16
2 files changed, 16 insertions, 4 deletions
diff --git a/testsuites/rubbos/run_rubbos.py b/testsuites/rubbos/run_rubbos.py
index afe653fe..455b3e58 100755
--- a/testsuites/rubbos/run_rubbos.py
+++ b/testsuites/rubbos/run_rubbos.py
@@ -375,8 +375,8 @@ def main():
print "Cannot create instances, as Failed to create image(s)."
exit (-1)
- print "Wait 300 seconds after stack creation..."
- time.sleep(300)
+ print "Wait 600 seconds after stack creation..."
+ time.sleep(600)
#reboot_instances()
#time.sleep(180)
diff --git a/testsuites/vstf/run_vstf.py b/testsuites/vstf/run_vstf.py
index 15292646..08490610 100755
--- a/testsuites/vstf/run_vstf.py
+++ b/testsuites/vstf/run_vstf.py
@@ -191,15 +191,25 @@ def get_instances(nova_client):
print "Error [get_instances(nova_client)]:", e
return None
-def vstf_run():
+def vstf_run(launch_file=None, test_file=None):
print "================run vstf==============="
nova = _get_nova_client()
print(nova.servers.list())
+ time.sleep(100)
instances = get_instances(nova)
if instances == None:
print "Found *None* instances, exit vstf_run()!"
return False
+ if launch_file == None or test_file == None:
+ print "Error, vstf launch/test file not given"
+ return False
+ cmd = "bash " + launch_file
+ subprocess.call(cmd, shell=True)
+ time.sleep(50)
+ cmd = "bash " + test_file
+ subprocess.call(cmd, shell=True)
+ time.sleep(20)
def main():
@@ -256,7 +266,9 @@ def main():
print "Wait 100 seconds after stack creation..."
time.sleep(100)
- vstf_run()
+ launchfile = Bottlenecks_repo_dir + "/utils/infra_setup/heat_template/vstf_heat_template/launch_vstf.sh"
+ testfile = Bottlenecks_repo_dir + "utils/infra_setup/heat_template/vstf_heat_template/test_vstf.sh"
+ vstf_run(launch_file=launchfile, test_file=testfile)
vstf_env_cleanup()