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] [Updated] (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:03:04 GMT

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

Kengo Seki updated HADOOP-12142:
--------------------------------
    Status: Patch Available  (was: Open)

> 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)

Mime
View raw message