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)

Reply via email to