diff options
author | Peter Mikus <pmikus@cisco.com> | 2017-08-02 13:17:35 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2017-08-02 13:32:30 +0200 |
commit | 53754c8de1ba1c03e6d9dfe7cbe82898e4cd122a (patch) | |
tree | 443f77143bf7306e3e7d41a3a30477c401f9642c | |
parent | bbcaa22c4425c32c3e3d2bcde434cdefc6b9a992 (diff) |
Fix: Release report PDF generation bug
QXcbConnection: Could not connect to display
Change-Id: Ie6e99f7dc3a0372768955c28f32c90c542e0be78
Signed-off-by: Peter Mikus <pmikus@cisco.com>
-rwxr-xr-x | resources/tools/report_gen/run_report.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/resources/tools/report_gen/run_report.sh b/resources/tools/report_gen/run_report.sh index 597cff055a..ec779adf5d 100755 --- a/resources/tools/report_gen/run_report.sh +++ b/resources/tools/report_gen/run_report.sh @@ -35,7 +35,7 @@ sudo apt-get -y install libxml2 libxml2-dev libxslt-dev build-essential \ zlib1g-dev unzip if [[ ${CFG[BLD_LATEX]} -eq 1 ]] ; then - sudo apt-get -y install librsvg2-bin texlive-latex-recommended \ + sudo apt-get -y install xvfb texlive-latex-recommended \ texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra latexmk wkhtmltopdf sudo sed -i.bak 's/^\(main_memory\s=\s\).*/\110000000/' /usr/share/texlive/texmf-dist/web2c/texmf.cnf fi @@ -605,12 +605,11 @@ if [[ ${CFG[BLD_LATEX]} -eq 1 ]] ; then # Convert PyPLOT graphs in HTML format to PDF. for f in ${DIR[STATIC,VPP]}/*; do - wkhtmltopdf ${f} ${f%.html}.pdf + xvfb-run -a wkhtmltopdf ${f} ${f%.html}.pdf done for f in ${DIR[STATIC,DPDK]}/*; do - wkhtmltopdf ${f} ${f%.html}.pdf + xvfb-run -a wkhtmltopdf ${f} ${f%.html}.pdf done - #rsvg-convert -z 10 -f pdf -o fdio.pdf fdio.svg # Generate the LaTeX documentation sphinx-build -v -c . -a -b latex -E \ @@ -621,7 +620,6 @@ then pdflatex -interaction nonstopmode csit.tex || true cp csit.pdf ../${DIR[STATIC,ARCH]}/csit_$1.pdf cd ${SCRIPT_DIR} - #rm -f fdio.pdf fi # Create archive |