cmd/lfstest-count-tests.go: use platform-appropriate executable name

This commit is contained in:
Taylor Blau 2018-07-13 13:06:44 -05:00
parent c41afd5b29
commit eb5c5c0417

@ -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")),