mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-12 08:16:09 -07:00
small improvement in tests (test result in green or red) (#448)
This commit is contained in:
parent
8dd0118673
commit
5d7d0c3af9
1 changed files with 2 additions and 1 deletions
|
@ -189,7 +189,6 @@ test_script:
|
||||||
#execute scriptblock
|
#execute scriptblock
|
||||||
Write-host "Test [$using:Name] job: $using:Cmd"
|
Write-host "Test [$using:Name] job: $using:Cmd"
|
||||||
$Cond=&$sb
|
$Cond=&$sb
|
||||||
Write-host "Result[$using:Name]: $Cond"
|
|
||||||
|
|
||||||
if ($Cond -eq $null){
|
if ($Cond -eq $null){
|
||||||
} Else {
|
} Else {
|
||||||
|
@ -206,8 +205,10 @@ test_script:
|
||||||
}
|
}
|
||||||
|
|
||||||
If ($res) {
|
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)"
|
Add-AppveyorTest -Name "$using:Name" -Framework NUnit -Filename "$using:File" -Outcome Passed -Duration "$([System.Environment]::TickCount-$TestTime)"
|
||||||
}Else {
|
}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"
|
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
|
return $res
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue