From: Oleg Moiseenko Date: Thu, 26 Oct 2017 16:32:18 +0000 (+0300) Subject: small improvement in tests (test result in green or red) (#448) X-Git-Tag: v3.1.0~144 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/5d7d0c3af9a97817db86407498f12aae02a085da small improvement in tests (test result in green or red) (#448) --- diff --git a/appveyor.yml b/appveyor.yml index b072335a..c8e58b59 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -189,7 +189,6 @@ test_script: #execute scriptblock Write-host "Test [$using:Name] job: $using:Cmd" $Cond=&$sb - Write-host "Result[$using:Name]: $Cond" if ($Cond -eq $null){ } Else { @@ -206,8 +205,10 @@ test_script: } If ($res) { + Write-host "Result[$using:Name]: $Cond" -ForegroundColor Green Add-AppveyorTest -Name "$using:Name" -Framework NUnit -Filename "$using:File" -Outcome Passed -Duration "$([System.Environment]::TickCount-$TestTime)" }Else { + Write-host "Result[$using:Name]: $Cond" -ForegroundColor Red Add-AppveyorTest -Name "$using:Name" -Framework NUnit -Filename "$using:File" -Outcome Failed -Duration "$([System.Environment]::TickCount-$TestTime)" -ErrorMessage "command:$using:Cmd`nresult:$Cond" } return $res