Skip to content

Commit 814389d

Browse files
authored
Merge pull request libgit2#4862 from libgit2/ethomson/win_ci
Windows CI: fail build on test failure
2 parents cd248c7 + 0e26717 commit 814389d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/test.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $PSDefaultParameterValues['*:ErrorAction'] = 'Stop'
77

88
$SourceDir = Split-Path (Split-Path (Get-Variable MyInvocation).Value.MyCommand.Path)
99
$BuildDir = Get-Location
10-
$Success = $true
10+
$global:Success = $true
1111

1212
if ($Env:SKIP_TESTS) { exit }
1313

@@ -25,7 +25,7 @@ function run_test {
2525
Write-Host $TestCommand
2626
Invoke-Expression $TestCommand
2727

28-
if ($LastExitCode -ne 0) { $Success = $false }
28+
if ($LastExitCode -ne 0) { $global:Success = $false }
2929
}
3030

3131
Write-Host "##############################################################################"
@@ -69,4 +69,4 @@ if (-not $Env:SKIP_PROXY_TESTS) {
6969
taskkill /F /IM javaw.exe
7070
}
7171

72-
if (-not $Success) { exit 1 }
72+
if (-Not $global:Success) { exit 1 }

0 commit comments

Comments
 (0)