diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-05-03 19:50:38 +0000 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-05-03 19:51:57 +0000 |
commit | b3d9cf247f3de5558b0a8e42b63178dc1924ee73 (patch) | |
tree | 03c8a0a2afea9e453579372df3b5a5660d169718 /resources/tools | |
parent | 7da4d5715a7d777562f8d524d075d2b08451af83 (diff) |
Report: Add time to the timestamp
Change-Id: I323517fbac177ef31861be747feeb81968d2b330
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools')
-rw-r--r-- | resources/tools/presentation/generator_report.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_report.py b/resources/tools/presentation/generator_report.py index 67701be182..c9ee22f961 100644 --- a/resources/tools/presentation/generator_report.py +++ b/resources/tools/presentation/generator_report.py @@ -48,7 +48,7 @@ HTML_BUILDER = 'sphinx-build -v -c . -a ' \ '-b html -E ' \ '-t html ' \ '-D release={release} ' \ - '-D version="{release} report - {date}" ' \ + '-D version="{release} report\n{date}" ' \ '{working_dir} ' \ '{build_dir}/' @@ -57,7 +57,7 @@ PDF_BUILDER = 'sphinx-build -v -c . -a ' \ '-b latex -E ' \ '-t latex ' \ '-D release={release} ' \ - '-D version="{release} report - {date}" ' \ + '-D version="{release} report\n{date}" ' \ '{working_dir} ' \ '{build_dir}' @@ -103,7 +103,7 @@ def generate_html_report(release, spec, versions): cmd = HTML_BUILDER.format( release=release, - date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M'), + date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M UTC'), working_dir=spec.environment["paths"]["DIR[WORKING,SRC]"], build_dir=spec.environment["paths"]["DIR[BUILD,HTML]"]) execute_command(cmd) @@ -148,7 +148,7 @@ def generate_pdf_report(release, spec, versions): build_dir = spec.environment["paths"]["DIR[BUILD,LATEX]"] cmd = PDF_BUILDER.format( release=release, - date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M'), + date=datetime.datetime.utcnow().strftime('%m/%d/%Y %H:%M UTC'), working_dir=spec.environment["paths"]["DIR[WORKING,SRC]"], build_dir=build_dir) execute_command(cmd) |