This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new 8428f5155 Fix windows paths in --resource
8428f5155 is described below

commit 8428f5155ee8f2cfead46722609a9a31afc27265
Author: mmajerni <[email protected]>
AuthorDate: Tue Jul 26 10:54:26 2022 +0200

    Fix windows paths in --resource
---
 e2e/namespace/install/cli/dev_mode_test.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/e2e/namespace/install/cli/dev_mode_test.go 
b/e2e/namespace/install/cli/dev_mode_test.go
index 96b8d1d1e..dd808e2c5 100644
--- a/e2e/namespace/install/cli/dev_mode_test.go
+++ b/e2e/namespace/install/cli/dev_mode_test.go
@@ -30,6 +30,7 @@ import (
        "os"
        "testing"
        "time"
+       "path/filepath"
 
        . "github.com/onsi/gomega"
        "github.com/stretchr/testify/assert"
@@ -137,7 +138,7 @@ func TestRunDevMode(t *testing.T) {
 
                        file := util.MakeTempCopy(t, 
"files/resource-file-location-route.groovy")
 
-                       kamelRun := KamelRunWithContext(ctx, operatorID, ns, 
file, "--dev", "--resource", fmt.Sprintf("file:%s@/tmp/file.txt", 
tmpFile.Name()))
+                       kamelRun := KamelRunWithContext(ctx, operatorID, ns, 
file, "--dev", "--resource", fmt.Sprintf("file:%s@/tmp/file.txt", 
filepath.ToSlash(tmpFile.Name())))
                        kamelRun.SetOut(pipew)
 
                        logScanner := util.NewLogScanner(ctx, piper, 
`integration "resource-file-location-route" in phase Running`,
@@ -150,7 +151,7 @@ func TestRunDevMode(t *testing.T) {
                        if globalTest {
                                os.Args = []string{"kamel", "run", "-n", ns, 
file, "--dev", "--resource", fmt.Sprintf("file:%s@/tmp/file.txt", 
tmpFile.Name())}
                        } else {
-                               os.Args = []string{"kamel", "run", "-n", ns, 
"--operator-id", operatorID, file, "--dev", "--resource", 
fmt.Sprintf("file:%s@/tmp/file.txt", tmpFile.Name())}
+                               os.Args = []string{"kamel", "run", "-n", ns, 
"--operator-id", operatorID, file, "--dev", "--resource", 
fmt.Sprintf("file:%s@/tmp/file.txt", filepath.ToSlash(tmpFile.Name()))}
                        }
 
                        go kamelRun.Execute()

Reply via email to