]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
actually omit ignored warnings
authorHolger Levsen <holger@layer-acht.org>
Fri, 1 Jun 2012 13:07:38 +0000 (15:07 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 1 Jun 2012 13:07:38 +0000 (15:07 +0200)
puppet_lint_run.sh

index 403e497345811f9d15f891756c3daed9d65ea7fb..163e743b4f68b579b7a203980d2fb0ac8eaa63d3 100755 (executable)
@@ -20,10 +20,16 @@ for file in $(find . -iname '*.pp') ; do
                #
                if [ "$file" = "./modules/concat/manifests/init.pp" ] ; then 
                        if [ $(grep -c "WARNING:quoted boolean value found" $OUTPUT) != "6" ] ; then
+                               #
+                               # fail if there are not exactly 6
+                               #
                                cat $OUTPUT
                                echo
                                echo "Not exactly 6 boolean warnings found... please investigate and adopt jenkins_build_script.git/puppet_lint_run.sh as needed"
                                exit 1
+                       else
+                               # all is good
+                               grep -v "WARNING:quoted boolean value found" $OUTPUT
                        fi
                fi
                cat $OUTPUT