Skip tests for credentials on Windows

They use test/files/pre-push, which doesn't work on Windows.
This commit is contained in:
Stefan Haller 2024-01-19 22:02:35 +01:00
parent d9324019a3
commit 7274d86d54
2 changed files with 6 additions and 2 deletions

View file

@ -1,6 +1,8 @@
package branch
import (
"runtime"
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
@ -8,7 +10,7 @@ import (
var DeleteRemoteBranchWithCredentialPrompt = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Delete a remote branch where credentials are required",
ExtraCmdArgs: []string{},
Skip: false,
Skip: runtime.GOOS == "windows",
SetupConfig: func(config *config.AppConfig) {
},
SetupRepo: func(shell *Shell) {

View file

@ -1,6 +1,8 @@
package sync
import (
"runtime"
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
@ -8,7 +10,7 @@ import (
var PushWithCredentialPrompt = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Push a commit to a pre-configured upstream, where credentials are required",
ExtraCmdArgs: []string{},
Skip: false,
Skip: runtime.GOOS == "windows",
SetupConfig: func(config *config.AppConfig) {
},
SetupRepo: func(shell *Shell) {