Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-891: Add data sources for 1801 report
[csit.git]
/
resources
/
tools
/
presentation
/
generator_report.py
diff --git
a/resources/tools/presentation/generator_report.py
b/resources/tools/presentation/generator_report.py
index
8a3f833
..
cf8a8d1
100644
(file)
--- a/
resources/tools/presentation/generator_report.py
+++ b/
resources/tools/presentation/generator_report.py
@@
-50,6
+50,7
@@
THEME_OVERRIDES = """/* override table width restrictions */
# Command to build the html format of the report
HTML_BUILDER = 'sphinx-build -v -c . -a ' \
'-b html -E ' \
# Command to build the html format of the report
HTML_BUILDER = 'sphinx-build -v -c . -a ' \
'-b html -E ' \
+ '-t html ' \
'-D release={release} ' \
'-D version="{release} report - {date}" ' \
'{working_dir} ' \
'-D release={release} ' \
'-D version="{release} report - {date}" ' \
'{working_dir} ' \
@@
-58,6
+59,7
@@
HTML_BUILDER = 'sphinx-build -v -c . -a ' \
# Command to build the pdf format of the report
PDF_BUILDER = 'sphinx-build -v -c . -a ' \
'-b latex -E ' \
# Command to build the pdf format of the report
PDF_BUILDER = 'sphinx-build -v -c . -a ' \
'-b latex -E ' \
+ '-t latex ' \
'-D release={release} ' \
'-D version="{release} report - {date}" ' \
'{working_dir} ' \
'-D release={release} ' \
'-D version="{release} report - {date}" ' \
'{working_dir} ' \
@@
-138,7
+140,9
@@
def generate_pdf_report(release, spec, versions):
convert_plots = "xvfb-run -a wkhtmltopdf {html} {pdf}.pdf"
# Convert PyPLOT graphs in HTML format to PDF.
convert_plots = "xvfb-run -a wkhtmltopdf {html} {pdf}.pdf"
# Convert PyPLOT graphs in HTML format to PDF.
- plots = get_files(spec.environment["paths"]["DIR[STATIC,VPP]"], "html")
+ plots = get_files(spec.environment["paths"]["DIR[STATIC,VPP]"], "html")
+ plots.extend(get_files(spec.environment["paths"]["DIR[STATIC,DPDK]"],
+ "html"))
for plot in plots:
file_name = "{0}".format(plot.rsplit(".", 1)[0])
cmd = convert_plots.format(html=plot, pdf=file_name)
for plot in plots:
file_name = "{0}".format(plot.rsplit(".", 1)[0])
cmd = convert_plots.format(html=plot, pdf=file_name)