-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Improve the SingleLineTestResult and integrate with parallel_testsuite #25761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve the SingleLineTestResult and integrate with parallel_testsuite #25761
Conversation
|
Replaced #25752 |
77cd236 to
c447e52
Compare
a9f51e3 to
8b8c0bc
Compare
test/single_line_runner.py
Outdated
| # Format the line so that it fix within the terminal width, unless it's less then min_len | ||
| def writeStatus(self, test, msg, color, line_pos): | ||
| # Becuse the message can include the skip reason (which can be very long somtimes), truncate it | ||
| # to a reasonable length to avoid exceeding ling length. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # to a reasonable length to avoid exceeding ling length. | |
| # to a reasonable length to avoid exceeding line length. |
|
Looks nice! |
Yes thats is how the parallel test runner works for sure. We don't overwrite the old line until we have new test result. For the |
Now the parallel test suite now longer needs its own reporting logic it can just share use the existing Runner/Result which now supports the color and single long output formats. By default we now buffer test output and use the single line test runner. Adding `-v` will disabled this and give multi-line non-buffered output. Adding another `-v` will enable logging in the test framework (same as setting EMTEST_VERBOSE)
8b8c0bc to
8e8dabb
Compare
|
I'd be fine not seeing the 'ok', it's more helpful to me to see if a test is taking a long time or hung. |

Now the parallel test suite now longer needs its own reporting logic it can just share use the existing Runner/Result which now supports the color and single long output formats.
By default we now buffer test output and use the single line test runner. Adding
-vwill disabled this and give multi-line non-buffered output. Adding another-vwill enable logging in the test framework (same as setting EMTEST_VERBOSE)