diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-09-25 23:33:41 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-09-26 01:03:17 +0200 |
commit | 94026d10f5146d93871efb3e65b2e59897edbbfb (patch) | |
tree | f466d65efbc103be6eac1d02593526169717412e | |
parent | 43f10d006466459d0b1843c80311543db00ae664 (diff) |
check-jinja: Suppress PDF output logging
Change-Id: I92bb9302abb74f5a58b6c10144dbe8d24d188938
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
-rwxr-xr-x | check-jinja2.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/check-jinja2.sh b/check-jinja2.sh index 796157f..7d74197 100755 --- a/check-jinja2.sh +++ b/check-jinja2.sh @@ -20,10 +20,13 @@ while IFS= read -r lab_config; do pdf_inst=0 pdf_inst_pass=0 while IFS= read -r jinja_template; do - echo -e "\n\n${GEN_CFG} -y ${lab_config} -j ${jinja_template}" - if "${GEN_CFG}" -y "${lab_config}" -j "${jinja_template}"; then + echo -e "\n${GEN_CFG} -y ${lab_config} -j ${jinja_template}" + if "${GEN_CFG}" -y "${lab_config}" \ + -j "${jinja_template}" > /dev/null; then + echo 'Result: PASS' ((pdf_inst_pass+=1)) else + echo 'Result: FAIL' RC=1 fi ((pdf_inst+=1)) @@ -34,4 +37,15 @@ done < <(find 'pharos/config' 'labs' -name 'pod*.yaml') echo -e '\n' echo -e "${SUMMARY}" | sed -e 's/^/;/g' -e 's/;/;| /g' | column -t -s ';' + +cat <<EOF + +To troubleshoot PDF parsing against a specific installer adapter, +execute the following commands locally (e.g. for zte-pod2/joid): +$ git submodule update --remote --init +$ ./pharos/config/utils/generate_config.py \\ + -y labs/zte/pod2.yaml \\ + -j ./pharos/config/installers/joid/pod_config.yaml.j2 + +EOF exit "${RC}" |