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.
This commit is contained in:
stk 2024-01-20 18:28:52 +01:00 committed by Stefan Haller
parent 23613b8063
commit 0afcc3d34d
4 changed files with 12 additions and 4 deletions

View file

@ -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")
},

View file

@ -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").

View file

@ -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")
},

View file

@ -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"
},