Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Zptyfy W01history.ztst
Philippe Altherr wrote:
> Wouldn't messing directly with the parent stty settings mess up stuff
> badly if we do end up running tests in parallel at some point?
>
> You are right. The stty trick isn't reliable when tests are run in parallel.
This is what I was getting at with the question in my last mail about
needing zpty for parallel runs on other platforms. Does this only affect
W01 tests? You need at least two processes to fight over the terminal to
get issues. Or is W01 the only one affected because it does more than
just write text?
> And since the whole point is to avoid garbled output when tests are run in
> parallel, it's not useful.
If you don't want garbled output, use gmake's --output-sync / -O
> I will try to come up with something that uses `script` if it's present (and
> from a known platform), otherwise uses `zpty` if the module is available, and
> otherwise runs the tests without muting the tty.
I don't see the point in trying to use script instead of zpty,
especially if GNU specific options are needed. Better to be dogfooding
zpty in our tests. Maybe only if zpty is not available. Incidentally,
after checking a few platforms, Haiku OS also lacks the flusho stty
support and it appears to not have a script command either.
In cases where it is not running tests in parallel, it might drop the
need for a pseudo tty and use the stty solution to avoid the noise.
It should also be very easy to disable the pty temporarily by just
commenting out a line or two.
Renaming files with @mutetty suffixes seems a bit ugly. We've got
%prep/%test/%clean sections in the test file. How about checking for
%mutetty in the place where those are handled?
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author