You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aw...@apache.org on 2015/06/29 20:51:00 UTC

hadoop git commit: HADOOP-12142. Test code modification is not detected if test directory is at the top level of the project

Repository: hadoop
Updated Branches:
  refs/heads/HADOOP-12111 6225dccb8 -> c5815a6ac


HADOOP-12142. Test code modification is not detected if test directory is at the top level of the project


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

Branch: refs/heads/HADOOP-12111
Commit: c5815a6ac8a9d82cc9cd42c7f4d330a0f526821a
Parents: 6225dcc
Author: Allen Wittenauer <aw...@apache.org>
Authored: Mon Jun 29 11:50:50 2015 -0700
Committer: Allen Wittenauer <aw...@apache.org>
Committed: Mon Jun 29 11:50:50 2015 -0700

----------------------------------------------------------------------
 dev-support/test-patch.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/c5815a6a/dev-support/test-patch.sh
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh
index e1dadd2..b958abf 100755
--- a/dev-support/test-patch.sh
+++ b/dev-support/test-patch.sh
@@ -2339,7 +2339,7 @@ function check_modified_unittests
   start_clock
 
   for i in ${CHANGED_FILES}; do
-    if [[ ${i} =~ /test/ ]]; then
+    if [[ ${i} =~ (^|/)test/ ]]; then
       ((testReferences=testReferences + 1))
     fi
   done