diff options
author | wangyaoguang <sunshine.wang@huawei.com> | 2016-04-29 16:23:30 +0800 |
---|---|---|
committer | wangyaoguang <sunshine.wang@huawei.com> | 2016-04-29 16:33:06 +0800 |
commit | 8ff853cf793a643061fc605d7435fdb15d8c97dc (patch) | |
tree | f778269f9c53aa9e03f186b53f5d36f2f2a3ea82 /testsuites/rubbos/run_rubbos.py | |
parent | 479cc8b4588b33db8b38345da6a1d41af7768ce5 (diff) |
bugfix: integrate rubbos to ci
JIRA: BOTTLENECK-74
Change-Id: Idbcbe3c51b361d11b16ab7a0de8b12fa347f9186
Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
Diffstat (limited to 'testsuites/rubbos/run_rubbos.py')
-rwxr-xr-x | testsuites/rubbos/run_rubbos.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuites/rubbos/run_rubbos.py b/testsuites/rubbos/run_rubbos.py index 3c189991..e49ff7e2 100755 --- a/testsuites/rubbos/run_rubbos.py +++ b/testsuites/rubbos/run_rubbos.py @@ -274,15 +274,16 @@ def rubbos_run(): subprocess.call(cmd, shell=True) # call remote run_rubbos_internal.sh - cmd = "ssh " + ssh_args + " ubuntu@" + control_public_ip + ' sudo /home/ubuntu/run_rubbos_internal.sh /home/ubuntu/rubbos.conf /home/ubuntu/btnks-results' + cmd = "ssh " + ssh_args + " ubuntu@" + control_public_ip + ' "sudo /home/ubuntu/run_rubbos_internal.sh /home/ubuntu/rubbos.conf /home/ubuntu/btnks-results" ' print "Exec shell: " + cmd subprocess.call(cmd, shell=True) - cmd = "scp " + ssh_args + " ubuntu@" + control_public_ip + "/home/ubuntu/btnks-results/rubbos.out ./rubbos.out" + cmd = "scp " + ssh_args + " ubuntu@" + control_public_ip + ":/home/ubuntu/btnks-results/rubbos.out ./rubbos.out" print "Exec shell: " + cmd subprocess.call(cmd, shell=True) if os.path.exists("rubbos.out") == False: + print "Failed to fetch results from the rubbos_control node!" return False - + with open("rubbos.out") as f: lines = f.readlines() print "Rubbos results:" |