This is an automated email from the ASF dual-hosted git repository.
gaojun2048 pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new 6b808048d [hotfix][e2e] Fix path error when SeaTunnel container is
running on windows OS (#3398)
6b808048d is described below
commit 6b808048d6a5aeb124f6a1ce7bbe7e1ec676ce95
Author: Zongwen Li <[email protected]>
AuthorDate: Sat Nov 12 10:31:28 2022 +0800
[hotfix][e2e] Fix path error when SeaTunnel container is running on windows
OS (#3398)
---
.../seatunnel/e2e/common/container/seatunnel/SeaTunnelContainer.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/common/container/seatunnel/SeaTunnelContainer.java
b/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/common/container/seatunnel/SeaTunnelContainer.java
index 8d1f4224f..9909017d1 100644
---
a/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/common/container/seatunnel/SeaTunnelContainer.java
+++
b/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/common/container/seatunnel/SeaTunnelContainer.java
@@ -23,6 +23,7 @@ import
org.apache.seatunnel.e2e.common.container.AbstractTestContainer;
import org.apache.seatunnel.e2e.common.container.ContainerExtendedFactory;
import org.apache.seatunnel.e2e.common.container.TestContainer;
import org.apache.seatunnel.e2e.common.container.TestContainerId;
+import org.apache.seatunnel.e2e.common.util.ContainerUtil;
import com.google.auto.service.AutoService;
import lombok.NoArgsConstructor;
@@ -52,7 +53,7 @@ public class SeaTunnelContainer extends AbstractTestContainer
{
public void startUp() throws Exception {
server = new GenericContainer<>(getDockerImage())
.withNetwork(NETWORK)
- .withCommand(Paths.get(SEATUNNEL_HOME, "bin",
SERVER_SHELL).toString())
+
.withCommand(ContainerUtil.adaptPathForWin(Paths.get(SEATUNNEL_HOME, "bin",
SERVER_SHELL).toString()))
.withNetworkAliases("server")
.withExposedPorts()
.withLogConsumer(new
Slf4jLogConsumer(DockerLoggerFactory.getLogger("seatunnel-engine:" +
JDK_DOCKER_IMAGE)))