Skip to content

Commit 231d25a

Browse files
guseravbwbarrett
authored andcommitted
whitespace-checker: Be more specific about hwloc
As requested in open-mpi#22 the hwloc component should not be excluded. Only a part of it should be excluded from the whitespace check. Signed-off-by: guserav <[email protected]>
1 parent 6dbbbde commit 231d25a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jenkins/whitespace-checker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ config_file=.whitespace-checker-config.txt
1313
if [[ -r $config_file ]]; then
1414
exclude_dirs=`cat $config_file`
1515
else
16-
exclude_dirs='hwloc|libevent|pmix4x|treematch|romio'
16+
exclude_dirs='((opal/mca/hwloc/hwloc.*/hwloc)|/(libevent|pmix4x|treematch|romio))/'
1717
fi
1818

1919
foundTab=0
20-
for file in $(git diff --name-only $1 $2 | grep -vE "/($exclude_dirs)/" | grep -E "(\.c|\.h)$")
20+
for file in $(git diff -l0 --name-only $1 $2 | grep -vE "($exclude_dirs)" | grep -E "(\.c|\.h)$")
2121
do
2222
git diff $1 $2 -- $file | grep -C $context -E "^\+.* +"
2323
if [[ $? -eq 0 ]]

0 commit comments

Comments
 (0)