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

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Thu Nov 28 10:38:05 EST 2013


     [ https://issues.jboss.org/browse/WFLY-2574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Loubyansky resolved WFLY-2574.
-------------------------------------

    Fix Version/s: 8.0.0.CR1
       Resolution: Done


Fixed in the master.
                
>  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
>             Fix For: 8.0.0.CR1
>
>
> 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