From 4d3b84b4a16d980f1bff2fffb5f985992b8bec71 Mon Sep 17 00:00:00 2001 From: chenhb Date: Thu, 28 Sep 2017 11:01:05 +0800 Subject: [PATCH] Use html-static instead of html_static when exporting report from one file We have used "exporter" mechanism instead of old report, and rename html_static to html-static. Change-Id: I599737725694167352aa8e50863f87cc2d53c686 --- tests/functional/test_cli_task.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/functional/test_cli_task.py b/tests/functional/test_cli_task.py index 6531db74..be24711c 100644 --- a/tests/functional/test_cli_task.py +++ b/tests/functional/test_cli_task.py @@ -339,6 +339,23 @@ class TaskTestCase(unittest.TestCase): rally, "task report --report %s" % FAKE_TASK_UUID) self._assert_html_report_libs_are_embedded(html_report, False) + def test_report_one_file_with_static_libs(self): + rally = utils.Rally() + cfg = self._get_sample_task_config() + config = utils.TaskConfig(cfg) + rally("task start --task %s" % config.filename) + task_result_file = "/tmp/report_42.json" + if os.path.exists(task_result_file): + os.remove(task_result_file) + rally("task results", report_path=task_result_file, + raw=True) + + html_report = rally.gen_report_path(extension="html") + rally("task report --html-static %s --out %s" + % (task_result_file, html_report)) + self.assertTrue(os.path.exists(html_report)) + self._assert_html_report_libs_are_embedded(html_report) + def test_report_one_uuid_with_static_libs(self): rally = utils.Rally() cfg = self._get_sample_task_config()