Skip to content

Commit 3de1422

Browse files
committed
Fix shells TestPowershell_GetConfiguration on Windows
1 parent c2b8b1d commit 3de1422

5 files changed

+1
-9
lines changed

ci/.test-failures.servercore1809.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
TestBuildCancel
22
TestBuildCancel/cmd
3-
TestPowershell_GetConfiguration
4-
TestPowershell_GetConfiguration/pwsh_on_shell_with_custom_user_(windows)

ci/.test-failures.servercore2004.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
TestPowershell_GetConfiguration
2-
TestPowershell_GetConfiguration/pwsh_on_shell_with_custom_user_(windows)
31
TestBuildCancel
42
TestBuildCancel/cmd

ci/.test-failures.servercore20H2.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
TestPowershell_GetConfiguration
2-
TestPowershell_GetConfiguration/pwsh_on_shell_with_custom_user_(windows)
31
TestDockerServiceHealthcheck
42
TestDockerServiceHealthcheck/successful_service_(FF_NETWORK_PER_BUILD=true)
53
TestDockerServiceHealthcheck/failed_service_(FF_NETWORK_PER_BUILD=true)

ci/.test-failures.servercore21H1.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
TestPowershell_GetConfiguration
2-
TestPowershell_GetConfiguration/pwsh_on_shell_with_custom_user_(windows)
31
TestBuildCancel
42
TestBuildCancel/cmd

shells/powershell_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func TestPowershell_GetConfiguration(t *testing.T) {
216216
expectedCommand: "su",
217217
expectedCmdLine: "su custom -c " + pwshStdinExpectedLine,
218218
getExpectedArguments: func(shell string) []string {
219-
return []string{"-s", "custom", "-c", SNPwsh + " " + strings.Join(stdinCmdArgs(shell), " ")}
219+
return []string{"custom", "-c", SNPwsh + " " + strings.Join(stdinCmdArgs(shell), " ")}
220220
},
221221
},
222222
"powershell on shell - FF_DISABLE_POWERSHELL_STDIN true": {

0 commit comments

Comments
 (0)