From: Thanh Ha Date: Mon, 16 Oct 2017 16:31:01 +0000 (-0400) Subject: Fix jjb-verify job to ignore the docs directory X-Git-Tag: v0.11.0~16^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F6906%2F2;p=releng%2Fglobal-jjb.git Fix jjb-verify job to ignore the docs directory The non-ascii checker should not check the docs directory as that directory does not contain jjb code. Change-Id: I3ec988a308c67346f4ebe6cdd6e933a2f4637f5b Signed-off-by: Thanh Ha --- diff --git a/.jjb-test/expected-xml/gerrit-ciman-jjb-verify b/.jjb-test/expected-xml/gerrit-ciman-jjb-verify index b59d3c6e..2a9896fa 100644 --- a/.jjb-test/expected-xml/gerrit-ciman-jjb-verify +++ b/.jjb-test/expected-xml/gerrit-ciman-jjb-verify @@ -303,7 +303,7 @@ popd ############################################################################## echo "---> jjb-check-unicode.sh" -if LC_ALL=C grep -r '[^[:print:][:space:]]' jjb/; then +if LC_ALL=C grep --exclude=docs/ -r '[^[:print:][:space:]]' jjb/; then echo "Found files containing non-ascii characters." exit 1 fi diff --git a/.jjb-test/expected-xml/github-ciman-jjb-verify b/.jjb-test/expected-xml/github-ciman-jjb-verify index 3a10bb80..5705ebc9 100644 --- a/.jjb-test/expected-xml/github-ciman-jjb-verify +++ b/.jjb-test/expected-xml/github-ciman-jjb-verify @@ -251,7 +251,7 @@ popd ############################################################################## echo "---> jjb-check-unicode.sh" -if LC_ALL=C grep -r '[^[:print:][:space:]]' jjb/; then +if LC_ALL=C grep --exclude=docs/ -r '[^[:print:][:space:]]' jjb/; then echo "Found files containing non-ascii characters." exit 1 fi diff --git a/shell/jjb-check-unicode.sh b/shell/jjb-check-unicode.sh index c1293bac..e1d28a02 100644 --- a/shell/jjb-check-unicode.sh +++ b/shell/jjb-check-unicode.sh @@ -10,7 +10,7 @@ ############################################################################## echo "---> jjb-check-unicode.sh" -if LC_ALL=C grep -r '[^[:print:][:space:]]' jjb/; then +if LC_ALL=C grep --exclude=docs/ -r '[^[:print:][:space:]]' jjb/; then echo "Found files containing non-ascii characters." exit 1 fi