From 0afcc3d34d73b41f57b46e01c04648821c4608a2 Mon Sep 17 00:00:00 2001 From: stk Date: Sat, 20 Jan 2024 18:28:52 +0100 Subject: [PATCH] Skip some more tests that don't work on Windows It might be possible to make them work somehow, but for now I'm focusing on getting things green as quickly as possible. --- pkg/integration/tests/custom_commands/form_prompts.go | 4 +++- pkg/integration/tests/custom_commands/menu_from_command.go | 4 +++- pkg/integration/tests/custom_commands/multiple_prompts.go | 4 +++- pkg/integration/tests/misc/copy_to_clipboard.go | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pkg/integration/tests/custom_commands/form_prompts.go b/pkg/integration/tests/custom_commands/form_prompts.go index 8ab54451d..1545ef30a 100644 --- a/pkg/integration/tests/custom_commands/form_prompts.go +++ b/pkg/integration/tests/custom_commands/form_prompts.go @@ -1,6 +1,8 @@ package custom_commands import ( + "runtime" + "github.com/jesseduffield/lazygit/pkg/config" . "github.com/jesseduffield/lazygit/pkg/integration/components" ) @@ -8,7 +10,7 @@ import ( var FormPrompts = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Using a custom command reffering prompt responses by name", ExtraCmdArgs: []string{}, - Skip: false, + Skip: runtime.GOOS == "windows", SetupRepo: func(shell *Shell) { shell.EmptyCommit("blah") }, diff --git a/pkg/integration/tests/custom_commands/menu_from_command.go b/pkg/integration/tests/custom_commands/menu_from_command.go index 9e5f39615..084cbb04b 100644 --- a/pkg/integration/tests/custom_commands/menu_from_command.go +++ b/pkg/integration/tests/custom_commands/menu_from_command.go @@ -1,6 +1,8 @@ package custom_commands import ( + "runtime" + "github.com/jesseduffield/lazygit/pkg/config" . "github.com/jesseduffield/lazygit/pkg/integration/components" ) @@ -10,7 +12,7 @@ import ( var MenuFromCommand = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Using menuFromCommand prompt type", ExtraCmdArgs: []string{}, - Skip: false, + Skip: runtime.GOOS == "windows", SetupRepo: func(shell *Shell) { shell. EmptyCommit("foo"). diff --git a/pkg/integration/tests/custom_commands/multiple_prompts.go b/pkg/integration/tests/custom_commands/multiple_prompts.go index d36c40d65..d22dc3cb6 100644 --- a/pkg/integration/tests/custom_commands/multiple_prompts.go +++ b/pkg/integration/tests/custom_commands/multiple_prompts.go @@ -1,6 +1,8 @@ package custom_commands import ( + "runtime" + "github.com/jesseduffield/lazygit/pkg/config" . "github.com/jesseduffield/lazygit/pkg/integration/components" ) @@ -8,7 +10,7 @@ import ( var MultiplePrompts = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Using a custom command with multiple prompts", ExtraCmdArgs: []string{}, - Skip: false, + Skip: runtime.GOOS == "windows", SetupRepo: func(shell *Shell) { shell.EmptyCommit("blah") }, diff --git a/pkg/integration/tests/misc/copy_to_clipboard.go b/pkg/integration/tests/misc/copy_to_clipboard.go index 6b1d5d1f6..5042dc685 100644 --- a/pkg/integration/tests/misc/copy_to_clipboard.go +++ b/pkg/integration/tests/misc/copy_to_clipboard.go @@ -1,6 +1,8 @@ package misc import ( + "runtime" + "github.com/jesseduffield/lazygit/pkg/config" . "github.com/jesseduffield/lazygit/pkg/integration/components" ) @@ -10,7 +12,7 @@ import ( var CopyToClipboard = NewIntegrationTest(NewIntegrationTestArgs{ Description: "Copy a branch name to the clipboard using custom clipboard command template", ExtraCmdArgs: []string{}, - Skip: false, + Skip: runtime.GOOS == "windows", SetupConfig: func(config *config.AppConfig) { config.UserConfig.OS.CopyToClipboardCmd = "echo {{text}} > clipboard" },