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:
Charles Short 2019-09-16 22:00:55 -04:00
parent 52edb0e780
commit 03169ef468
1 changed files with 3 additions and 3 deletions

View File

@ -79,18 +79,18 @@ class Rally(base.WorkloadBase):
def gen_scenario_html(self, task_ids, test_name):
all_task_ids = ' '.join(task_ids)
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)
return self.tools.run_cmd(cmd)['stdout']
def gen_scenario_json(self, task_id):
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']
def gen_scenario_json_file(self, task_id, test_name):
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']
def rally_metadata(self, result, meta):