ci: display error if vpntest failed

This commit is contained in:
Ilya Shipitsin committed 2019-08-04 14:42:52 +05:00
1 parent d10f83417f
commit 2fa28480f9
1 file changed
+3 -1
+3 -1
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{