Fix jjb-verify job to ignore the docs directory 07/6907/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 16 Oct 2017 16:31:01 +0000 (12:31 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 16 Oct 2017 16:47:02 +0000 (16:47 +0000)
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 <thanh.ha@linuxfoundation.org>
.jjb-test/expected-xml/gerrit-ciman-jjb-verify
.jjb-test/expected-xml/github-ciman-jjb-verify
shell/jjb-check-unicode.sh

index b59d3c6..2a9896f 100644 (file)
@@ -303,7 +303,7 @@ popd
 ##############################################################################
 echo &quot;---&gt; jjb-check-unicode.sh&quot;
 
-if LC_ALL=C grep -r '[^[:print:][:space:]]' jjb/; then
+if LC_ALL=C grep --exclude=docs/ -r '[^[:print:][:space:]]' jjb/; then
     echo &quot;Found files containing non-ascii characters.&quot;
     exit 1
 fi
index 3a10bb8..5705ebc 100644 (file)
@@ -251,7 +251,7 @@ popd
 ##############################################################################
 echo &quot;---&gt; jjb-check-unicode.sh&quot;
 
-if LC_ALL=C grep -r '[^[:print:][:space:]]' jjb/; then
+if LC_ALL=C grep --exclude=docs/ -r '[^[:print:][:space:]]' jjb/; then
     echo &quot;Found files containing non-ascii characters.&quot;
     exit 1
 fi
index c1293ba..e1d28a0 100644 (file)
@@ -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