[jboss-jira] [JBoss JIRA] (WFLY-2574) CliArgumentsTestCase should not rely on java beeing on path

Tomaz Cerar (JIRA) jira-events at lists.jboss.org
Tue Nov 26 08:31:05 EST 2013


    [ https://issues.jboss.org/browse/WFLY-2574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926754#comment-12926754 ] 

Tomaz Cerar commented on WFLY-2574:
-----------------------------------

Same applies also to  CommandsExitCodeTestCase, FileArgumentTestCase &  FileWithPropertiesTestCase
                
>  CliArgumentsTestCase should not rely on java beeing on path
> ------------------------------------------------------------
>
>                 Key: WFLY-2574
>                 URL: https://issues.jboss.org/browse/WFLY-2574
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: CLI, Test Suite
>    Affects Versions: 8.0.0.Beta1
>            Reporter: Tomaz Cerar
>            Assignee: Alexey Loubyansky
>            Priority: Critical
>
> If there is no java on path tests fail with 
> {noformat}
> java.lang.AssertionError: Failed to start CLI process: Cannot run program "java": error=2, No such file or directory
>     at org.junit.Assert.fail(Assert.java:88)
>     at org.jboss.as.test.integration.management.cli.CliScriptTestBase.execute(CliScriptTestBase.java:108)
>     at org.jboss.as.test.integration.management.cli.CliScriptTestBase.execute(CliScriptTestBase.java:73)
>     at org.jboss.as.test.integration.management.cli.CliScriptTestBase.execute(CliScriptTestBase.java:69)
>     at org.jboss.as.test.integration.management.cli.CliArgumentsTestCase.testConnectArgument(CliArgumentsTestCase.java:103)
> {noformat}
> Test should use JAVA_HOME env variable or java that ran "current" process
> without this fix it is really hard to properly test build with different JDKs as test will always use default java for executing commands instead of build provided/configured one

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list