suppress suite stderr output
Этот коммит содержится в:
родитель
42ca958118
коммит
a38d5bc0d0
2 изменённых файлов: 1 добавлений и 3 удалений
|
@ -14,7 +14,6 @@ import (
|
|||
func main() {
|
||||
// will support Ansi colors for windows
|
||||
stdout := ansicolor.NewAnsiColorWriter(os.Stdout)
|
||||
stderr := ansicolor.NewAnsiColorWriter(os.Stdout)
|
||||
|
||||
builtFile := fmt.Sprintf("%s/%dgodog.go", os.TempDir(), time.Now().UnixNano())
|
||||
defer os.Remove(builtFile) // comment out for debug
|
||||
|
@ -38,7 +37,6 @@ func main() {
|
|||
// @TODO: support for windows
|
||||
cmd := exec.Command("sh", "-c", c)
|
||||
cmd.Stdout = stdout
|
||||
cmd.Stderr = stderr
|
||||
|
||||
err = cmd.Run()
|
||||
switch err.(type) {
|
||||
|
|
|
@ -143,7 +143,7 @@ func (c *config) features() (lst []*gherkin.Feature, err error) {
|
|||
return err
|
||||
})
|
||||
if err != nil {
|
||||
return
|
||||
return lst, fmt.Errorf(`feature path "%s" is not available or accessible`, path)
|
||||
}
|
||||
}
|
||||
return
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче