From 49c10ba1446930bccc260ee9680ab464b42fd0fa Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Mon, 16 Oct 2017 12:31:01 -0400 Subject: [PATCH] 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 --- .jjb-test/expected-xml/gerrit-ciman-jjb-verify | 2 +- .jjb-test/expected-xml/github-ciman-jjb-verify | 2 +- shell/jjb-check-unicode.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.16.6