From 6c917ac88a9a0c15d4a7c1235f8d10f42c26d9cd Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Wed, 31 Jul 2024 15:07:30 -0400 Subject: [PATCH] fix(test): path separator on windows --- testscript/script_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testscript/script_test.go b/testscript/script_test.go index 03a18e67e..9b4b38b28 100644 --- a/testscript/script_test.go +++ b/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()