Disable shell completion tests on windows

This commit is contained in:
neilotoole 2024-01-31 17:39:04 -07:00
parent 5917d2750c
commit 071d89d393

View File

@ -199,7 +199,9 @@ func TestCompleteFlagActiveSchema_query_cmds(t *testing.T) { //nolint:tparallel
// //
// See also: TestCompleteFlagActiveSchema_query_cmds. // See also: TestCompleteFlagActiveSchema_query_cmds.
func TestCompleteFlagActiveSchema_inspect(t *testing.T) { func TestCompleteFlagActiveSchema_inspect(t *testing.T) {
tu.SkipIssueWindows(t, tu.GH372ShellCompletionWin)
t.Parallel() t.Parallel()
const wantDirective = cobra.ShellCompDirectiveNoFileComp | cobra.ShellCompDirectiveKeepOrder const wantDirective = cobra.ShellCompDirectiveNoFileComp | cobra.ShellCompDirectiveKeepOrder
testCases := []struct { testCases := []struct {
@ -305,6 +307,9 @@ func TestCompleteFlagActiveSchema_inspect(t *testing.T) {
// TestCompleteFilterActiveGroup tests completion behavior // TestCompleteFilterActiveGroup tests completion behavior
// wrt [cli.OptShellCompletionGroupFilter]. // wrt [cli.OptShellCompletionGroupFilter].
func TestCompleteFilterActiveGroup(t *testing.T) { func TestCompleteFilterActiveGroup(t *testing.T) {
tu.SkipIssueWindows(t, tu.GH372ShellCompletionWin)
t.Parallel()
const ( const (
prodInv = "@prod/inventory" prodInv = "@prod/inventory"
prodSales = "@prod/sales" prodSales = "@prod/sales"
@ -420,6 +425,8 @@ func TestCompleteFilterActiveGroup(t *testing.T) {
for _, tc := range testCases { for _, tc := range testCases {
tc := tc tc := tc
t.Run(tc.name, func(t *testing.T) { t.Run(tc.name, func(t *testing.T) {
t.Parallel()
tr := testrun.New(context.Background(), t, nil).Hush() tr := testrun.New(context.Background(), t, nil).Hush()
for _, handle := range tc.srcs { for _, handle := range tc.srcs {
@ -452,6 +459,7 @@ func TestCompleteFilterActiveGroup(t *testing.T) {
// works with both cobra.ShellCompRequestCmd and // works with both cobra.ShellCompRequestCmd and
// cobra.ShellCompNoDescRequestCmd. // cobra.ShellCompNoDescRequestCmd.
func TestCompleteAllCobraRequestCmds(t *testing.T) { func TestCompleteAllCobraRequestCmds(t *testing.T) {
tu.SkipIssueWindows(t, tu.GH372ShellCompletionWin)
t.Parallel() t.Parallel()
testCases := []struct { testCases := []struct {