Skip to content

Commit 47862b1

Browse files
committed
Task 42088: Suppress flaky tests errors in AzDO UI
- Testing suppression of errors/warnings in the UI due to flaky tests.
1 parent a900926 commit 47862b1

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

build.proj

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,16 @@
349349
</PropertyGroup>
350350
<Message Text=">>> Running unit tests for Windows via command: $(TestCommand)"/>
351351
<!--
352-
We instruct MSBuild to ignore output from the tests that matches error/warning expressions.
353-
This avoids cluttering the Azure DevOps pipeline runs UI with spurious errors, while still
354-
considering the exit status of the test process to determine overall pass/fail.
352+
We instruct MSBuild to ignore the exit code and output from the tests that matches
353+
error/warning expressions. This avoids cluttering the Azure DevOps pipeline runs UI with
354+
spurious errors, while still considering the exit status of the test process to determine
355+
overall pass/fail.
355356
-->
356-
<Exec ConsoleToMsBuild="true" IgnoreStandardErrorWarningFormat="true" Command="$(TestCommand)"/>
357+
<Exec
358+
ConsoleToMsBuild="true"
359+
IgnoreExitCode="true"
360+
IgnoreStandardErrorWarningFormat="true"
361+
Command="$(TestCommand)"/>
357362
</Target>
358363

359364
<!-- Run all flaky unit tests applicable to Unix. -->
@@ -375,7 +380,11 @@
375380
<TestCommand>$([System.Text.RegularExpressions.Regex]::Replace($(TestCommand), "\s+", " "))</TestCommand>
376381
</PropertyGroup>
377382
<Message Text=">>> Running unit tests for Unix via command: $(TestCommand)"/>
378-
<Exec ConsoleToMsBuild="true" IgnoreStandardErrorWarningFormat="true" Command="$(TestCommand)"/>
383+
<Exec
384+
ConsoleToMsBuild="true"
385+
IgnoreExitCode="true"
386+
IgnoreStandardErrorWarningFormat="true"
387+
Command="$(TestCommand)"/>
379388
</Target>
380389

381390
<!-- Run all Functional tests applicable to the host OS. -->

0 commit comments

Comments
 (0)