Skip to content

Commit a4d45cc

Browse files
authored
[devops] Make sure the pwsh test script always fail on failures. (#24212)
1. This shouldn't ever be necessary. 2. If it were necessary, it should always be necessary. 3. Powershell's exit code handling is 🤯 For reference / amusement / scaring children: https://stackoverflow.com/a/57468523.
1 parent ce11ede commit a4d45cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/devops/automation/scripts/run-remote-windows-tests.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ if ("$Env:TESTFILTER" -eq "") {
2626
"--logger:trx;LogFileName=$Env:BUILD_SOURCESDIRECTORY/$Env:BUILD_REPOSITORY_TITLE/jenkins-results/windows-remote-dotnet-tests.trx" `
2727
"--logger:html;LogFileName=$Env:BUILD_SOURCESDIRECTORY/$Env:BUILD_REPOSITORY_TITLE/jenkins-results/windows-remote-dotnet-tests.html" `
2828
"-bl:$Env:BUILD_SOURCESDIRECTORY/$Env:BUILD_REPOSITORY_TITLE/tests/dotnet/Windows/windows-remote-dotnet-tests.binlog"
29+
30+
exit $LASTEXITCODE

0 commit comments

Comments
 (0)