Skip to content

Commit

Permalink
test explorer: fix run path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
xhd2015 committed Jul 6, 2024
1 parent 5a3329d commit 17fa57f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/xgo/test-explorer/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ type runSession struct {
func formatPathArgs(paths []string) []string {
args := make([]string, 0, len(paths))
for _, relPath := range paths {
if filepath.Separator != '/' {
relPath = strings.ReplaceAll(relPath, string(filepath.Separator), "/")
}
args = append(args, "./"+relPath)
}
return args
Expand Down

0 comments on commit 17fa57f

Please sign in to comment.