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 "Todd Lipcon (JIRA)" <ji...@apache.org> on 2011/06/03 20:15:47 UTC
[jira] [Commented] (HADOOP-7357)
hadoop.io.compress.TestCodec#main() should exit with non-zero exit code if
test failed
[ https://issues.apache.org/jira/browse/HADOOP-7357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043930#comment-13043930 ]
Todd Lipcon commented on HADOOP-7357:
-------------------------------------
Why not get rid of the try/catch completely and just let the exception propagate out of main? That would produce the correct error code as well and remove 5 lines of code.
> hadoop.io.compress.TestCodec#main() should exit with non-zero exit code if test failed
> --------------------------------------------------------------------------------------
>
> Key: HADOOP-7357
> URL: https://issues.apache.org/jira/browse/HADOOP-7357
> Project: Hadoop Common
> Issue Type: Bug
> Components: test
> Reporter: Philip Zeyliger
> Assignee: Philip Zeyliger
> Priority: Trivial
> Attachments: HADOOP-7357.patch.txt
>
>
> It's convenient to run something like
> {noformat}
> HADOOP_CLASSPATH=hadoop-test-0.20.2.jar bin/hadoop org.apache.hadoop.io.compress.TestCodec -count 3 -codec fo
> {noformat}
> but the error code it returns isn't interesting.
> 1-line patch attached fixes that.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira