hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kengo Seki (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-12142) Test code modification is not detected if test directory is at the top level of the project
Date Mon, 29 Jun 2015 08:01:05 GMT
Kengo Seki created HADOOP-12142:
-----------------------------------

             Summary: Test code modification is not detected if test directory is at the top
level of the project
                 Key: HADOOP-12142
                 URL: https://issues.apache.org/jira/browse/HADOOP-12142
             Project: Hadoop Common
          Issue Type: Sub-task
          Components: yetus
    Affects Versions: HADOOP-12111
            Reporter: Kengo Seki
            Assignee: Kengo Seki


On HADOOP-12134, a sample patch contains test code modification, but test4tests failed to
detect it.
This is because test directory is at the top level of the Pig project. test-patch detects
changed files as follows, so the pattern does not match "test/...".

{code}
  for i in ${CHANGED_FILES}; do
    if [[ ${i} =~ /test/ ]]; then
      ((testReferences=testReferences + 1))
    fi
  done
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message