Skip to content

Commit d20b6e0

Browse files
committed
🔨 Change return code for hook in powershell script
1 parent fed97a0 commit d20b6e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plugin/buildtools/runUnitTest.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ foreach ($api in $supportedGraphicsAPI) {
122122
$testsPassed = $testsPassed -and $result[1]
123123
}
124124

125+
125126
if ($testsPassed -eq $True) {
126127
Write-Host "All unit tests have passed !" -ForegroundColor Green
128+
Exit 0
127129
}
128130
else {
129131
Write-Host "Some Unit tests with $apiName have failed !" -ForegroundColor Red
130-
132+
Exit -1
131133
}
132-
133-
Exit $testsPassed

0 commit comments

Comments
 (0)