Skip to content

Commit

Permalink
Exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Mar 19, 2024
1 parent 0968833 commit 7f547d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/vsts-validate.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Run internal pester tests
& "$PSScriptRoot/../tests/pester.ps1"
& "$PSScriptRoot/../tests/pester.ps1"
2 changes: 1 addition & 1 deletion tests/pester.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ if ($TestFunctions)

$testresults | Sort-Object Describe, Context, Name, Result, Message | Format-List

if ($totalFailed -eq 0) { Write-Host "All $totalRun tests executed without a single failure!" }
if ($totalFailed -eq 0) { Write-Host "All $totalRun tests executed without a single failure!"; exit 0 }
else { Write-Host "$totalFailed tests out of $totalRun tests failed!" }

if ($totalFailed -gt 0)
Expand Down

0 comments on commit 7f547d6

Please sign in to comment.