-
Notifications
You must be signed in to change notification settings - Fork 13
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
Make bin/vspec output unbuffered in order to make it possible to create shell wrappers #34
Comments
Thank you for the report. I've confirmed the problem. By the way, I use prove |
Oops, I accidentally posted halfway. By the way, I use |
This looks very promising. I will look inside Test::Harness when I get the chance. |
Today I tried
I searched around a bit for a solution. The answers I found all say that it isn't easily possible to unbuffer existing programs. The only way is to make the wrapper pretend to be a terminal. I'm not sure if this problem is the responsibility of Interesting resources: |
Ah... I'm sorry. I compared results of wrong commands. I ran
rather than
to compare with |
In the solution for #15 a final filter
sed 's/\r$//'
was added inbin/vspec
.Unfortunately, by default sed buffers its output, so it is no longer possible to add another filter and see the output live.
Making sed output unbuffered (
sed -u
) or line-buffered (sed -l
) fixes the problem. Unfortunately there are many different sed flavours and not all of them have these flags.The reason this is a problem for me is that I use a small benchmark wrapper around
vspec
, and the benchmark tests I run with it can take quite long. For one benchmark, for example, I have to wait 20 seconds until the whole thing is finished and I can see the benchmark results.The text was updated successfully, but these errors were encountered: