summaryrefslogtreecommitdiff
path: root/ci/test.ps1
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-09-17 20:12:59 -0700
committerEdward Thomson <ethomson@edwardthomson.com>2018-09-29 18:11:37 +0100
commit429c7f1141f812d266cfd7d33a142871c21f8874 (patch)
tree423fa6b5210de114a86add2990e6a3f8b295e898 /ci/test.ps1
parent7c9769d94799c7bc6341d64e18bbd13bc8993ad6 (diff)
downloadlibgit2-429c7f1141f812d266cfd7d33a142871c21f8874.tar.gz
ci: don't stop on failureethomson/ci-refactor
Don't stop on test failures; run all the tests, even when a test fails.
Diffstat (limited to 'ci/test.ps1')
-rw-r--r--ci/test.ps15
1 files changed, 4 insertions, 1 deletions
diff --git a/ci/test.ps1 b/ci/test.ps1
index 5f75c0b62..7a55bff79 100644
--- a/ci/test.ps1
+++ b/ci/test.ps1
@@ -7,6 +7,7 @@ $PSDefaultParameterValues['*:ErrorAction'] = 'Stop'
$SourceDir = Split-Path (Split-Path (Get-Variable MyInvocation).Value.MyCommand.Path)
$BuildDir = Get-Location
+$Success = $true
if ($Env:SKIP_TESTS) { exit }
@@ -24,7 +25,7 @@ function run_test {
Write-Host $TestCommand
Invoke-Expression $TestCommand
- if ($LastExitCode -ne 0) { [Environment]::Exit($LastExitCode) }
+ if ($LastExitCode -ne 0) { $Success = $false }
}
Write-Host "##############################################################################"
@@ -67,3 +68,5 @@ if (-not $Env:SKIP_PROXY_TESTS) {
taskkill /F /IM javaw.exe
}
+
+if (-not $Success) { exit 1 }