hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject [2/6] hbase git commit: HBASE-18505 Yetus only run root when all modules changed
Date Fri, 13 Oct 2017 17:14:29 GMT
HBASE-18505 Yetus only run root when all modules changed


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/aeffd3ad
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/aeffd3ad
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/aeffd3ad

Branch: refs/heads/branch-1
Commit: aeffd3ad76fe5da009391dbd41d1f2e66e5e3ec8
Parents: 8d6902a
Author: Mike Drob <mdrob@apache.org>
Authored: Fri Oct 13 12:12:07 2017 -0500
Committer: Mike Drob <mdrob@apache.org>
Committed: Fri Oct 13 12:13:01 2017 -0500

----------------------------------------------------------------------
 dev-support/hbase-personality.sh | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/aeffd3ad/dev-support/hbase-personality.sh
----------------------------------------------------------------------
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index c0386e5..43371f8 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}"


Mime
View raw message