From 80272a1c86868594e22146c0106e7bb8f5e776f3 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 29 Nov 2018 15:08:18 +0100 Subject: Auditor-reports generation. Still on polishing/debugging the script. --- buildbot/make_auditor_reports.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh index 1d6c36a..4a88008 100755 --- a/buildbot/make_auditor_reports.sh +++ b/buildbot/make_auditor_reports.sh @@ -21,19 +21,29 @@ fi DATE=$(date +%Y-%m-%d) REPORT_FILE=/home/${ACTIVE_COLOR}/audit_report.${DATE} +WIRE_REPORT_FILE=/home/${ACTIVE_COLOR}/wire_audit_report.${DATE} SUDO_COLOR="sudo -u ${ACTIVE_COLOR}" JINJA_TEMPLATE="auditor-report.tex.j2" REPORTS_DIRECTORY="/home/${TALER_DEPLOYMENT}/reports" ${SUDO_COLOR} sh -c "taler-auditor > ${REPORT_FILE}.txt" +${SUDO_COLOR} sh -c "taler-wire-auditor > ${WIRE_REPORT_FILE}.txt" # 2 convert them into PDF. # 3 put them into nginx-served directory. -${SUDO_COLOR} sh -c \ +if ! ${SUDO_COLOR} sh -c \ "./render_auditor_reports.py \ - ${REPORT_FILE}.txt > ${REPORT_FILE}.tex \ - < ${JINJA_TEMPLATE}" + ${REPORT_FILE}.txt \ + ${WIRE_REPORT_FILE}.txt \ + > ${REPORT_FILE}.tex \ + < ${JINJA_TEMPLATE}"; then +echo +echo "Could not generate the TEX template (from Jinja)." +exit 1 +fi + +# POLISHING ENDS HERE. ${SUDO_COLOR} pdflatex \ --output-directory $REPORTS_DIRECTORY \ -- cgit v1.2.3