Repository navigation
SetOut.SetOutReadToEnd (System.Console.Tests) failing #57935
Copy link
Copy link
Closed
Labels
arch-x64area-System.Consoledisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issueneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationIssue has been initially triaged, but needs deeper consideration or reconsiderationos-linuxLinux OS (any supported distro)Linux OS (any supported distro)
Milestone
Description
Configuration: net6.0-Linux-Release-x64-CoreCLR_release-Ubuntu.1604.Amd64.Open
Discovering: System.Console.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Console.Tests (found 103 of 137 test cases)
Starting: System.Console.Tests (parallel test collections = on, max threads = 2)
Color.RedirectedOutput_EnvVarSet_EmitsAnsiCodes [SKIP]
SetOut.SetOutReadToEnd [FAIL]
Assert.Equal() Failure
↓ (pos 4)
Expected: Test
Actual: Test Condition(s) not met: "TermIsSet"\n
↑ (pos 4)
Stack Trace:
/_/src/libraries/System.Console/tests/Helpers.cs(30,0): at Helpers.SetAndReadHelper(Action`1 setHelper, Func`1 getHelper, Func`2 readHelper)
/_/src/libraries/System.Console/tests/SetOut.cs(33,0): at SetOut.SetOutReadToEnd()
0
0
Finished: System.Console.Tests
=== TEST EXECUTION SUMMARY ===
System.Console.Tests Total: 145, Errors: 0, Failed: 1, Skipped: 1, Time: 25.986s
Runfo Tracking Issue: setout.setoutreadtoend
| Build | Definition | Kind | Run Name | Console | Core Dump | Test Results | Run Client |
|---|---|---|---|---|---|---|---|
| 1472741 | runtime | Rolling | net6.0-Linux-Release-x64-Mono_release-(Centos.8.Amd64.Open)Ubuntu.1604.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:centos-8-helix-20201229003624-c1bf759 | console.log | runclient.py |
Build Result Summary
| Day Hit Count | Week Hit Count | Month Hit Count |
|---|---|---|
| 0 | 0 | 1 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
arch-x64area-System.Consoledisabled-testThe test is disabled in source code against the issueThe test is disabled in source code against the issueneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationIssue has been initially triaged, but needs deeper consideration or reconsiderationos-linuxLinux OS (any supported distro)Linux OS (any supported distro)
Activity
carlossanlop commentedon Oct 5, 2021
The TERM env variable cannot be found, or is empty:
runtime/src/libraries/System.Console/tests/Color.cs
Line 75 in 0d848f6
am11 commentedon Nov 29, 2021
When tests run in parallel, reading from Console.Out mangles the ReadToEnd output and therefore, SetOut tests intermittently fail.
Condition(s) not metpart is the output of previous skipped test. We can disable parallelism by adding[Collection(nameof(DisableParallelization))]on this class once PR #62132 is completed and delete ActiveIssue.