From eb5c5c04174db106e0f7d6d94ed62de1787eaa26 Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Fri, 13 Jul 2018 13:06:44 -0500 Subject: [PATCH] cmd/lfstest-count-tests.go: use platform-appropriate executable name --- t/cmd/lfstest-count-tests.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/t/cmd/lfstest-count-tests.go b/t/cmd/lfstest-count-tests.go index 5a715339..83efa910 100644 --- a/t/cmd/lfstest-count-tests.go +++ b/t/cmd/lfstest-count-tests.go @@ -9,6 +9,7 @@ import ( "os" "os/exec" "path/filepath" + "runtime" "strconv" "strings" "time" @@ -61,7 +62,12 @@ func main() { return n, err } - cmd := exec.Command("lfstest-gitserver") + var cmd *exec.Cmd + if runtime.GOOS == "windows" { + cmd = exec.Command("lfstest-gitserver.exe") + } else { + cmd = exec.Command("lfstest-gitserver") + } cmd.Env = append(os.Environ(), fmt.Sprintf("LFSTEST_URL=%s", os.Getenv("LFSTEST_URL")), fmt.Sprintf("LFSTEST_SSL_URL=%s", os.Getenv("LFSTEST_SSL_URL")),