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
9fb020fd6c
commit
7f65f4003b
|
@ -153,7 +153,8 @@ function personality_modules
|
||||||
# If BUILDMODE is 'patch', for unit and compile testtypes, there is no need to run individual
|
# If BUILDMODE is 'patch', for unit and compile testtypes, there is no need to run individual
|
||||||
# modules if root is included. HBASE-18505
|
# modules if root is included. HBASE-18505
|
||||||
if [[ "${BUILDMODE}" == "full" ]] || \
|
if [[ "${BUILDMODE}" == "full" ]] || \
|
||||||
[[ ( "${testtype}" == unit || "${testtype}" == compile ) && "${MODULES[*]}" =~ \. ]]; then
|
( ( [[ "${testtype}" == unit ]] || [[ "${testtype}" == compile ]] || [[ "${testtype}" == checkstyle ]] ) && \
|
||||||
|
[[ "${MODULES[*]}" =~ \. ]] ); then
|
||||||
MODULES=(.)
|
MODULES=(.)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue