diff --git a/tests/ci/rally-gate.sh b/tests/ci/rally-gate.sh index eda77d63..767f98a6 100755 --- a/tests/ci/rally-gate.sh +++ b/tests/ci/rally-gate.sh @@ -48,7 +48,7 @@ mkdir -p rally-plot/extra cp $BASE/new/rally/tests/ci/rally-gate/index.html rally-plot/extra/index.html cp $SCENARIO rally-plot/task.txt tar -czf rally-plot/plugins.tar.gz -C $RALLY_PLUGINS_DIR . -rally task plot2html --out rally-plot/results.html +rally task report --out rally-plot/results.html gzip -9 rally-plot/results.html rally task results | python -m json.tool > rally-plot/results.json gzip -9 rally-plot/results.json diff --git a/tests/functional/test_cli_task.py b/tests/functional/test_cli_task.py index f28356fa..ae3ff1f3 100644 --- a/tests/functional/test_cli_task.py +++ b/tests/functional/test_cli_task.py @@ -61,15 +61,16 @@ class TaskTestCase(unittest.TestCase): rally("task start --task %s" % config.filename) self.assertIn("result", rally("task results")) - def test_plot2html(self): + def test_report(self): rally = utils.Rally() cfg = self._get_sample_task_config() config = utils.TaskConfig(cfg) + html_file = "/tmp/test_plot.html" rally("task start --task %s" % config.filename) - if os.path.exists("/tmp/test_plot.html"): - os.remove("/tmp/test_plot.html") - rally("task plot2html /tmp/test_plot") - self.assertTrue(os.path.exists("/tmp/test_plot.html")) + if os.path.exists(html_file): + os.remove(html_file) + rally("task report /tmp/test_plot") + self.assertTrue(os.path.exists(html_file)) def test_delete(self): rally = utils.Rally()