From: Holger Levsen Date: Fri, 1 Jun 2012 13:07:38 +0000 (+0200) Subject: actually omit ignored warnings X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=e50ff46a7b0009615a1e2e57d577b8a7d81c7826;p=profitbricks%2Fjenkins-build-scripts.git actually omit ignored warnings --- diff --git a/puppet_lint_run.sh b/puppet_lint_run.sh index 403e497..163e743 100755 --- a/puppet_lint_run.sh +++ b/puppet_lint_run.sh @@ -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