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))
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}"