aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_report.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-11-15 13:35:12 +0100
committerTibor Frank <tifrank@cisco.com>2018-11-15 13:39:09 +0100
commitb8287ec997b2d426818fc095f2e4b49ec95d9f49 (patch)
tree81f16ab238d6c56da7b288c1b3bf087ef8886fbd /resources/tools/presentation/generator_report.py
parent215e1a007c90cd63bf44d142382a8cef51ec8509 (diff)
Report: Change versioning and legend of graphs
Change-Id: I6381c916582509c45f12d4e6d1d63ffeffc1eaf5 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_report.py')
-rw-r--r--resources/tools/presentation/generator_report.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_report.py b/resources/tools/presentation/generator_report.py
index 0fff90a204..6b28a92908 100644
--- a/resources/tools/presentation/generator_report.py
+++ b/resources/tools/presentation/generator_report.py
@@ -91,7 +91,7 @@ HTML_BUILDER = 'sphinx-build -v -c . -a ' \
'-b html -E ' \
'-t html ' \
'-D release={release} ' \
- '-D version="Report v{report_version} - {date}" ' \
+ '-D version="Test Report {date}" ' \
'{working_dir} ' \
'{build_dir}/'
@@ -100,7 +100,7 @@ PDF_BUILDER = 'sphinx-build -v -c . -a ' \
'-b latex -E ' \
'-t latex ' \
'-D release={release} ' \
- '-D version="Report v{report_version} - {date}" ' \
+ '-D version="Test Report {date}" ' \
'{working_dir} ' \
'{build_dir}'
@@ -157,7 +157,7 @@ def generate_html_report(release, spec, versions, report_version):
cmd = HTML_BUILDER.format(
release=release,
report_version=report_version,
- date=datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%MZ'),
+ date=datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M UTC'),
working_dir=working_dir,
build_dir=spec.environment["paths"]["DIR[BUILD,HTML]"])
execute_command(cmd)
@@ -212,7 +212,7 @@ def generate_pdf_report(release, spec, versions, report_version):
cmd = PDF_BUILDER.format(
release=release,
report_version=report_version,
- date=datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%MZ'),
+ date=datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M UTC'),
working_dir=working_dir,
build_dir=build_dir)
execute_command(cmd)