From b0886eaf76831d2e11f758f80fc1937733f87f66 Mon Sep 17 00:00:00 2001 From: Mike Drakos Date: Tue, 3 Sep 2024 14:10:29 -0700 Subject: [PATCH] Shells test fix --- test/integration/shell_int_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/integration/shell_int_test.go b/test/integration/shell_int_test.go index 43fe711297..a82050f157 100644 --- a/test/integration/shell_int_test.go +++ b/test/integration/shell_int_test.go @@ -500,7 +500,11 @@ func (suite *ShellIntegrationTestSuite) TestWindowsShells() { cp.SendLine("exit") cp.ExpectExitCode(0) - cp = ts.SpawnCmd("powershell", "-Command", "state", "shell") + cp = ts.SpawnCmdWithOpts( + "powershell", + e2e.OptArgs("-Command", "state", "shell"), + e2e.OptAppendEnv(constants.OverrideShellEnvVarName+"="), + ) cp.ExpectInput() cp.SendLine("$host.name") cp.Expect("ConsoleHost") // powershell always shows ConsoleHost, go figure