提交 44059875 作者: Jeromy

skip cli parse tests on windows due to no stdin

License: MIT
Signed-off-by: 's avatarJeromy <jeromyj@gmail.com>
上级 2b937007
......@@ -4,6 +4,7 @@ import (
"io"
"io/ioutil"
"os"
"runtime"
"strings"
"testing"
......@@ -132,6 +133,9 @@ func TestOptionParsing(t *testing.T) {
}
func TestArgumentParsing(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("stdin handling doesnt yet work on windows")
}
rootCmd := &commands.Command{
Subcommands: map[string]*commands.Command{
"noarg": {},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论