HBASE-18505 Yetus only run root when all modules changed

This commit is contained in:
Mike Drob 2017-10-13 12:12:07 -05:00
parent 501f8b9509
commit 822cc1ed73
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ function personality_modules
# and sets -Dtest.exclude.pattern/-Dtest to exclude/include the
# tests respectively.
if [[ ${testtype} = unit ]]; then
# if the modules include root, skip all the submodules HBASE-18505
if [[ "${CHANGED_MODULES[*]}" =~ \. ]]; then
CHANGED_MODULES=(.)
fi
extra="${extra} -PrunAllTests"
yetus_debug "EXCLUDE_TESTS_URL = ${EXCLUDE_TESTS_URL}"
yetus_debug "INCLUDE_TESTS_URL = ${INCLUDE_TESTS_URL}"