From 46e9a0048da4778e3347632be42a0e6d3fe1219d Mon Sep 17 00:00:00 2001 From: mdrakos Date: Wed, 28 Aug 2024 12:53:31 -0700 Subject: [PATCH] Set shell on Windows --- internal/testhelpers/e2e/session.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/testhelpers/e2e/session.go b/internal/testhelpers/e2e/session.go index 030e279c23..f84b71007f 100644 --- a/internal/testhelpers/e2e/session.go +++ b/internal/testhelpers/e2e/session.go @@ -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 }