You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Kengo Seki (JIRA)" <ji...@apache.org> on 2015/06/29 10:01:05 UTC

[jira] [Created] (HADOOP-12142) Test code modification is not detected if test directory is at the top level of the project

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)