tadayosi commented on code in PR #3485: URL: https://github.com/apache/camel-k/pull/3485#discussion_r930708595
########## e2e/namespace/install/cli/dev_mode_test.go: ########## @@ -137,7 +138,7 @@ func TestRunDevMode(t *testing.T) { file := util.MakeTempCopy(t, "../config/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", strings.Replace(tmpFile.Name(), "\\", "/", -1))) Review Comment: I'd prefer to use `filepath.ToSlash()` here. ########## e2e/namespace/install/cli/dev_mode_test.go: ########## @@ -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", strings.Replace(tmpFile.Name(), "\\", "/", -1))} Review Comment: I'd prefer to use `filepath.ToSlash()` here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org