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 Nick Dimiduk
parent 9fb020fd6c
commit 7f65f4003b
1 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,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