-
Notifications
You must be signed in to change notification settings - Fork 71
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
Fixes #28281 - no spinner on non-tty output #291
Conversation
Issues: #28281 |
@lzap thanks for the patch. LGTM! |
Sorry for late reply, I will look into this. |
@mbacovsky @lzap I can still see the ^M characeters in the test.log file |
This patch does not remove all of them, just those which were generated via the spinner. So many of them. Can you paste the output tho? |
|
@kgaikwad |
The text looks quite readable now, I mean there are few leftovers but it's not polluted with ^M^M^M^M. I don't see a reason why not to merge it, unless it breaks something in your tests. |
yeah, it doesn't break anything. We can ignore few of ^M characters. |
Sorry for the delay @lzap. Merging this patch. |
Thank you @lzap and @jameerpathan111. |
@jameerpathan111 - As long as no any unwanted failure in automation or tests, I guess that's fine. |
When the tool is executed with redirected output (to a pipe or a file) the spinner thing makes thing terrible and unreadable. The process should detect if it's running a tty and then avoid spinning (e.g. when executed from cron).
Reproducer:
See the ^M characeters in the log file. If the action takes a lot of time (e.g. restart) there will be a lots of these.