Skip to content

Commit

Permalink
$null input for dotnet test, see OSOE-464
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Nov 20, 2022
1 parent dddbbee commit 83f47fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/test-dotnet/Invoke-SolutionTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 ($?)
Expand Down

0 comments on commit 83f47fd

Please sign in to comment.