Merge pull request #123 from Pykselle/Pykselle-patch-1

Fix windows /dev/null bug with go1.10.0
Этот коммит содержится в:
Gediminas Morkevicius 2018-03-30 10:55:25 +01:00 коммит произвёл GitHub
родитель df93abf0b6 9f95a05caa
коммит 943635096a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -91,7 +91,7 @@ func Build(bin string) error {
// since we do not need it for godog suite.
// we also print back the temp WORK directory
// go has built. We will reuse it for our suite workdir.
out, err = exec.Command("go", "test", "-c", "-work", "-o", "/dev/null").CombinedOutput()
out, err = exec.Command("go", "test", "-c", "-work", "-o", os.DevNull).CombinedOutput()
if err != nil {
return fmt.Errorf("failed to compile tested package: %s, reason: %v, output: %s", pkg.Name, err, string(out))
}