check-jinja: Suppress PDF output logging 65/43065/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 25 Sep 2017 21:33:41 +0000 (23:33 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 25 Sep 2017 23:03:17 +0000 (01:03 +0200)
Change-Id: I92bb9302abb74f5a58b6c10144dbe8d24d188938
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
check-jinja2.sh

index 796157f..7d74197 100755 (executable)
@@ -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}"