From f6a8a76b50f2b67638cf83fb4b89703f5e98dedb Mon Sep 17 00:00:00 2001 From: Mike Drob Date: Fri, 13 Oct 2017 12:12:07 -0500 Subject: [PATCH] HBASE-18505 Yetus only run root when all modules changed --- dev-support/hbase-personality.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index c0386e5e400..43371f87da8 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -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}"