6c917ac88a9a0c15d4a7c1235f8d10f42c26d9cd

Author
Ayman Bagabas <ayman.bagabas@gmail.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

fix(test): path separator on windows

Diff

 1diff --git a/testscript/script_test.go b/testscript/script_test.go
 2index 03a18e67e3389edf68ee8c68505aba72ad4afff4..9b4b38b28c57812411fbe7c81ff9cc30c688aa51 100644
 3--- a/testscript/script_test.go
 4+++ b/testscript/script_test.go
 5@@ -95,7 +95,7 @@ func TestScript(t *testing.T) {
 6 		},
 7 		Setup: func(e *testscript.Env) error {
 8 			// Add binPath to PATH
 9-			e.Setenv("PATH", fmt.Sprintf("%s:%s", filepath.Dir(binPath), e.Getenv("PATH")))
10+			e.Setenv("PATH", fmt.Sprintf("%s%c%s", filepath.Dir(binPath), os.PathListSeparator, e.Getenv("PATH")))
11 
12 			data := t.TempDir()
13 			sshPort := test.RandomPort()