Milind Bhandarkar commented on PIG-852:

Note that JUnit tests that test the return code of a completely different JVM 
are kludgy at best. Therefore writing a test case of checking the System.exit() 
return value is insane. Hadoop folks have *mostly* fixed this issue by having a 
static public run() method that can be invoked directly in the tests, and can 
have it's return value (which is what main() uses as an exit code) checked.

So, committers, please ignore the "no-tests" warning.

> pig -version or pig -help returns exit code of 1
> ------------------------------------------------
>                 Key: PIG-852
>                 URL: https://issues.apache.org/jira/browse/PIG-852
>             Project: Pig
>          Issue Type: Bug
>          Components: grunt
>    Affects Versions: 0.3.0
>         Environment: All
>            Reporter: Milind Bhandarkar
>            Assignee: Milind Bhandarkar
>         Attachments: rc.patch
> {code}
> java -jar pig.jar -x local [-version|-help]
> {code}
> returns an exit code of 1 to the shell.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to