[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 07:13:05 EST 2013
Tomaz Cerar created WFLY-2574:
---------------------------------
Summary: 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