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:
parent
2ab731824f
commit
d4768114e8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue