Fix browbeat with rally 2.0
According to the rally changelog: --task argument of rally task report command and --task argument of rally task use command were deprecated in Rally 0.10.0 in favor of a unified --uuid argumnet. Update accordingly. Change-Id: Ide5147016f638e831fa83024813ea9d411db01e7 Signed-off-by: Charles Short <chucks@redhat.com>
This commit is contained in:
parent
52edb0e780
commit
03169ef468
@ -79,18 +79,18 @@ class Rally(base.WorkloadBase):
|
|||||||
def gen_scenario_html(self, task_ids, test_name):
|
def gen_scenario_html(self, task_ids, test_name):
|
||||||
all_task_ids = ' '.join(task_ids)
|
all_task_ids = ' '.join(task_ids)
|
||||||
cmd = "source {}; ".format(get_workload_venv('rally', True))
|
cmd = "source {}; ".format(get_workload_venv('rally', True))
|
||||||
cmd += "rally task report --task {} --out {}.html".format(
|
cmd += "rally task report --uuid {} --out {}.html".format(
|
||||||
all_task_ids, test_name)
|
all_task_ids, test_name)
|
||||||
return self.tools.run_cmd(cmd)['stdout']
|
return self.tools.run_cmd(cmd)['stdout']
|
||||||
|
|
||||||
def gen_scenario_json(self, task_id):
|
def gen_scenario_json(self, task_id):
|
||||||
cmd = "source {}; ".format(get_workload_venv('rally', True))
|
cmd = "source {}; ".format(get_workload_venv('rally', True))
|
||||||
cmd += "rally task results {}".format(task_id)
|
cmd += "rally task results --uuid {}".format(task_id)
|
||||||
return self.tools.run_cmd(cmd)['stdout']
|
return self.tools.run_cmd(cmd)['stdout']
|
||||||
|
|
||||||
def gen_scenario_json_file(self, task_id, test_name):
|
def gen_scenario_json_file(self, task_id, test_name):
|
||||||
cmd = "source {}; ".format(get_workload_venv('rally', True))
|
cmd = "source {}; ".format(get_workload_venv('rally', True))
|
||||||
cmd += "rally task results {} > {}.json".format(task_id, test_name)
|
cmd += "rally task results --uuid {} > {}.json".format(task_id, test_name)
|
||||||
return self.tools.run_cmd(cmd)['stdout']
|
return self.tools.run_cmd(cmd)['stdout']
|
||||||
|
|
||||||
def rally_metadata(self, result, meta):
|
def rally_metadata(self, result, meta):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user