From c7b72815d1b0ff13f5a1f4054e8999196ebac6ce Mon Sep 17 00:00:00 2001 From: cxhuawei <424024687@qq.com> Date: Mon, 7 Aug 2017 19:08:00 -0700 Subject: [PATCH] mofify gate reports to use static html because of some unreachable links. Change-Id: I4d71b57346817023e8b626905bb6701303dbdad6 --- tests/ci/rally_gate_functions.sh | 2 +- tests/ci/rally_verify.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/ci/rally_gate_functions.sh b/tests/ci/rally_gate_functions.sh index 65e0e95f..b7e98226 100644 --- a/tests/ci/rally_gate_functions.sh +++ b/tests/ci/rally_gate_functions.sh @@ -135,7 +135,7 @@ function run () { gzip -9 rally-plot/detailed.txt rally task detailed --iterations-data > rally-plot/detailed_with_iterations.txt gzip -9 rally-plot/detailed_with_iterations.txt - rally task report --html --out rally-plot/results.html + rally task report --html-static --out rally-plot/results.html gzip -9 rally-plot/results.html rally task export --type junit-xml --to rally-plot/junit.xml gzip -9 rally-plot/junit.xml diff --git a/tests/ci/rally_verify.py b/tests/ci/rally_verify.py index dda1421c..3032eff6 100755 --- a/tests/ci/rally_verify.py +++ b/tests/ci/rally_verify.py @@ -400,9 +400,13 @@ class ReportVerificationMixin(Step): class HtmlVerificationReport(ReportVerificationMixin): """Generate HTML report for verification(s).""" - CALL_ARGS = {"type": "html"} + CALL_ARGS = {"type": "html-static"} DEPENDS_ON = RunVerification + def setUp(self): + super(HtmlVerificationReport, self).setUp() + self.CALL_ARGS["out"] = self.CALL_ARGS["out"][:-7] + class JsonVerificationReport(ReportVerificationMixin): """Generate JSON report for verification(s)."""