fix(test): path separator on windows

Ayman Bagabas created

Change summary

testscript/script_test.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

testscript/script_test.go 🔗

@@ -95,7 +95,7 @@ func TestScript(t *testing.T) {
 		},
 		Setup: func(e *testscript.Env) error {
 			// Add binPath to PATH
-			e.Setenv("PATH", fmt.Sprintf("%s:%s", filepath.Dir(binPath), e.Getenv("PATH")))
+			e.Setenv("PATH", fmt.Sprintf("%s%c%s", filepath.Dir(binPath), os.PathListSeparator, e.Getenv("PATH")))
 
 			data := t.TempDir()
 			sshPort := test.RandomPort()