make verify script more verbose 07/3207/2
authorZhe Huang <zhehuang@research.att.com>
Tue, 7 Apr 2020 21:33:19 +0000 (17:33 -0400)
committerZhe Huang <zhehuang@research.att.com>
Tue, 7 Apr 2020 21:34:21 +0000 (21:34 +0000)
Issue-ID: INT-109
Signed-off-by: Zhe Huang <zhehuang@research.att.com>
Change-Id: Ic82f802423a1b1bc112ceb06a8897c6d07220826

bin/verify-ric-charts

index 7400185..2a8b9e6 100755 (executable)
@@ -87,24 +87,18 @@ do
     # Lint clearly marks errors; e.g., [ERROR]
     echo "Performing Helm lint"
     if [[ "${OVERRIDEYAML:-nope}" != "nope" ]]; then
-        $HELM_COMMAND lint -f "$OVERRIDEYAML" "$dir"> /tmp/output 2>&1
+        $HELM_COMMAND lint -f "$OVERRIDEYAML" "$dir"
     else
-        $HELM_COMMAND lint "$dir" > /tmp/output 2>&1
+        $HELM_COMMAND lint "$dir" 
     fi
     echo "***************************************************************************************************************"
-    cat /tmp/output 
-    egrep -q '^Error: [0-9]* chart\(s\) linted, [0-9]* chart\(s\) failed' /tmp/output && exit 1
-    echo "***************************************************************************************************************"
     echo "Rendering Helm charts locally"
     if [[ "${OVERRIDEYAML:-nope}" != "nope" ]]; then
-       $HELM_COMMAND template -f "$OVERRIDEYAML" "$dir" > /tmp/output 2>&1
+       $HELM_COMMAND template -f "$OVERRIDEYAML" "$dir"
     else
-        $HELM_COMMAND template "$dir" > /tmp/output 2>&1
+        $HELM_COMMAND template "$dir"
     fi
     echo "***************************************************************************************************************"
-    cat /tmp/output 
-    grep -E -n '%!.\(.*=.*\)' /tmp/output && echo "Error: Type mismatch." && exit 1
-    echo "***************************************************************************************************************"
 done
 echo "--> verify-ric-charts ends"
 exit 0