From 83f47fd5f25721291bc54dff7e10547df484ff67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Mon, 21 Nov 2022 00:54:22 +0100 Subject: [PATCH] $null input for dotnet test, see OSOE-464 --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 006415e1c..745af1fbe 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -60,9 +60,12 @@ foreach ($test in $tests) { $test ) + # Piping null is an attempt to emulate the fix under + # https://github.com/microsoft/vstest/issues/2080#issuecomment-539879345 for dotnet test hangs. See + # https://github.com/Lombiq/UI-Testing-Toolbox/issues/228 for details. # Filtering is necessary for annoying messages coming from UI testing but only under Ubuntu. There are no actual # errors. - dotnet test @dotnetTestSwitches 2>&1 | + $null | dotnet test @dotnetTestSwitches 2>&1 | Where-Object { $_ -notlike '*Connection refused [[]::ffff:127.0.0.1[]]*' -and $_ -notlike '*ChromeDriver was started successfully*' } if ($?)