Skip to content

Commit

Permalink
Shells test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MDrakos committed Sep 3, 2024
1 parent 77c970f commit b0886ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/integration/shell_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0886ea

Please sign in to comment.