Skip to content

Commit

Permalink
Set shell on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MDrakos committed Aug 28, 2024
1 parent 05ff825 commit 46e9a00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/testhelpers/e2e/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ func new(t *testing.T, retainDirs, updatePath bool, extraEnv ...string) *Session
require.NoError(session.T, err)
}

if runtime.GOOS == "windows" {
if err := cfg.Set(subshell.ConfigKeyShell, "cmd.exe"); err != nil {
require.NoError(session.T, err)
}
}

return session
}

Expand Down

0 comments on commit 46e9a00

Please sign in to comment.