Skip to content

Commit 4405987

Browse files
committed
skip cli parse tests on windows due to no stdin
License: MIT Signed-off-by: Jeromy <[email protected]>
1 parent 2b93700 commit 4405987

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

commands/cli/parse_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"io"
55
"io/ioutil"
66
"os"
7+
"runtime"
78
"strings"
89
"testing"
910

@@ -132,6 +133,9 @@ func TestOptionParsing(t *testing.T) {
132133
}
133134

134135
func TestArgumentParsing(t *testing.T) {
136+
if runtime.GOOS == "windows" {
137+
t.Skip("stdin handling doesnt yet work on windows")
138+
}
135139
rootCmd := &commands.Command{
136140
Subcommands: map[string]*commands.Command{
137141
"noarg": {},

0 commit comments

Comments
 (0)