From 9d68047d4984e1ba0c50e45f2cd8e520c9ce4513 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Mon, 12 Jun 2017 07:57:27 +0200 Subject: Appveyor: set test exit status (tentatively) For #364 --- dist/windows/appveyor/test.ps1 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'dist') 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 -- cgit v1.2.3