1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

Merge PR #960: ci: display error if vpntest failed

This commit is contained in:
Davide Beatrici 2019-08-29 09:05:47 +02:00 committed by GitHub
commit 9e46402e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,9 +6,11 @@ $ErrorActionPreference = 'Stop'
[String] $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){
$full
Write-Error 'failed'
return $false
}else{