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:03:04 UTC

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

     [ https://issues.apache.org/jira/browse/HADOOP-12142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kengo Seki updated HADOOP-12142:
--------------------------------
    Attachment: HADOOP-12142.HADOOP-12111.01.patch

> 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
>         Attachments: HADOOP-12142.HADOOP-12111.01.patch
>
>
> 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)