Skip to content

Commit

Permalink
[resolves #1628] ExecIntegrationTest fails on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Feb 17, 2017
1 parent 5c29b7e commit 3c24429
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.wildfly.camel.test.common.utils.EnvironmentUtils;
Expand All @@ -47,9 +46,6 @@ public static JavaArchive createDeployment() {

@Test
public void testExecProducer() throws Exception {

Assume.assumeFalse("[#1628] ExecIntegrationTest fails on Windows", EnvironmentUtils.isWindows());

CamelContext camelctx = new DefaultCamelContext();
camelctx.addRoutes(new RouteBuilder() {
@Override
Expand All @@ -63,7 +59,7 @@ private String getCommand() {
}

private String getArgs() {
return EnvironmentUtils.isWindows() ? "/C echo Hello Kermit" + System.lineSeparator() : "-n Hello Kermit";
return EnvironmentUtils.isWindows() ? "/C echo|set /p=\"Hello Kermit\"" : "-n Hello Kermit";
}
});

Expand Down

0 comments on commit 3c24429

Please sign in to comment.