HBASE-20467 Precommit personality should only run checkstyle once if we're going to run it at the root

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Nihal Jain 2018-04-21 03:41:13 +05:30 committed by Sean Busbey
parent 2ab731824f
commit d4768114e8
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ function personality_modules
# If BUILDMODE is 'patch', for unit and compile testtypes, there is no need to run individual
# modules if root is included. HBASE-18505
if [[ "${BUILDMODE}" == "full" ]] || \
[[ ( "${testtype}" == unit || "${testtype}" == compile ) && "${MODULES[*]}" =~ \. ]]; then
( ( [[ "${testtype}" == unit ]] || [[ "${testtype}" == compile ]] || [[ "${testtype}" == checkstyle ]] ) && \
[[ "${MODULES[*]}" =~ \. ]] ); then
MODULES=(.)
fi