mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
ci: display error if vpntest failed
This commit is contained in:
parent
d10f83417f
commit
2fa28480f9
@ -6,9 +6,11 @@ $ErrorActionPreference = 'Stop'
|
|||||||
[String] $mode = $_
|
[String] $mode = $_
|
||||||
Write-Host "testing: $mode"
|
Write-Host "testing: $mode"
|
||||||
|
|
||||||
$t = (Write-Output "q\n" | & .\build\vpntest.exe $mode | Select-String -Pattern 'NO MEMORY LEAKS' -CaseSensitive)
|
$full = (Write-Output "q\n" | & .\build\vpntest.exe $mode)
|
||||||
|
$t = ($full | Select-String -Pattern 'NO MEMORY LEAKS' -CaseSensitive)
|
||||||
|
|
||||||
if( ($t).Count -ne 1){
|
if( ($t).Count -ne 1){
|
||||||
|
$full
|
||||||
Write-Error 'failed'
|
Write-Error 'failed'
|
||||||
return $false
|
return $false
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user