diff --git a/integration/helpers.go b/integration/helpers.go index 83cec693..8af581c3 100644 --- a/integration/helpers.go +++ b/integration/helpers.go @@ -1,9 +1,16 @@ package integration -import "os/exec" +import ( + "os/exec" + "runtime" +) func GPTScriptExec(args ...string) (string, error) { cmd := exec.Command("../bin/gptscript", args...) + if runtime.GOOS == "windows" { + cmd = exec.Command("..\\bin\\gptscript.exe", args...) + } + out, err := cmd.CombinedOutput() return string(out), err }