diff options
-rw-r--r-- | dist/windows/appveyor/test.ps1 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/dist/windows/appveyor/test.ps1 b/dist/windows/appveyor/test.ps1 index a28186285..7d427460a 100644 --- a/dist/windows/appveyor/test.ps1 +++ b/dist/windows/appveyor/test.ps1 @@ -51,7 +51,10 @@ cd "$($env:APPVEYOR_BUILD_FOLDER)\testsuite" # Use a MinGW compatible path $env:GHDL="$($env:GHDL_PREFIX_DIR)/bin/ghdl.exe" -# ============================================================================== +# Exit status +$Err = 0 + +# ============================================================================= $TestFramework = "GNA" Write-Host "Running GNA tests..." -Foreground Yellow cd gna @@ -75,11 +78,12 @@ foreach ($Directory in $Directories) else { Write-Host "FAILED" -Foreground Red Update-AppveyorTest -Name $TestName -Framework $TestFramework -FileName $FileName -Outcome Failed -Duration $TotalMilliseconds + $Err = 1 } } cd ..\.. -# ============================================================================== +# ============================================================================= $TestFramework = "VESTS" Write-Host "Running VESTS tests..." -Foreground Yellow @@ -109,10 +113,11 @@ else else { Write-Host "FAILED" -Foreground Red Update-AppveyorTest -Name $TestName -Framework $TestFramework -FileName $FileName -Outcome Failed -Duration $TotalMilliseconds + $Err = 1 } cd .. } -# ============================================================================== +# ============================================================================= cd $env:APPVEYOR_BUILD_FOLDER -exit 0 +exit $Err |