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

Jarek Jarcec Cecho updated SQOOP-2132:
--------------------------------------
    Attachment: SQOOP-2132.patch

> Remove test TestMainframeImportTool.testPrintHelp
> -------------------------------------------------
>
>                 Key: SQOOP-2132
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2132
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Jarek Jarcec Cecho
>             Fix For: 1.4.5
>
>         Attachments: SQOOP-2132.patch
>
>
> I've noticed that test {{TestMainframeImportTool.testPrintHelp}} fails if run 
> with Hadoop 2.6:
> {code}
> ant clean test -Dtestcase=TestMainframeImportTool
> {code}
> The reason is that Hadoop changed the default "help" text and this tool is 
> checking output of that command character by character:
> {code}
> Testcase: testPrintHelp took 0.025 sec
>       FAILED
> expected:<...namenode
> -jt <local|[jobtracker:port>    specify a job track]er
> -files <comma sep...> but was:<...namenode
> -jt <local|[resourcemanager:port>    specify a ResourceManag]er
> -files <comma sep...>
> junit.framework.ComparisonFailure: expected:<...namenode
> -jt <local|[jobtracker:port>    specify a job track]er
> -files <comma sep...> but was:<...namenode
> -jt <local|[resourcemanager:port>    specify a ResourceManag]er
> -files <comma sep...>
>       at 
> org.apache.sqoop.tool.TestMainframeImportTool.testPrintHelp(TestMainframeImportTool.java:99)
> {code}
> I don't see particular value in testing content of help message as it's 
> mostly a static code, so I would like to suggest to simply drop this test.



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

Reply via email to