Thread (1 message) 1 message, 1 author, 2016-06-15

Re: tr/pty-all (Re: What's cooking in git.git (Dec 2011, #04; Tue, 13))

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:38

Thomas Rast [off-list ref] writes:
Jonathan Nieder wrote:
quoted
Junio C Hamano wrote:
quoted
Will merge to 'next' after taking another look.
The middle commit looks good.  The bottom commit could be improved as
discussed at [1], but I guess that can happen in-tree.

However, the top commit ("test test-terminal's sanity") still does not
seem right to me.
I wasn't under the impression that we were done with this, either :-)
quoted
It makes the same test run three times.  Probably I should send an
alternate patch to get that sanity-check to run once, but I am also
not convinced the sanity-check is needed at all --- wouldn't any test
that is relying on output from test_terminal act as a sanity check for
it already?
It didn't.  Or more precisely, Michael Haggerty ran into the behavior
of

  git rev-parse ... | while read sha; do git checkout $sha; make test; done

couldn't make any sense of it, and reported it on IRC.  So in some
sense, it took infrequent circumstances and two developers' time; next
time around I'd prefer it to be detected automatically.
quoted
As an aside, I also still believe that running "git shortlog" without
explicitly passing "HEAD" when testing how it reacts to [core] pager
configuration was a bug and a distraction, hence the patch at [2].
Why not.  Some other test should verify how shortlog reacts to the
tty-ness of stdin, but that's yet another direction.
quoted
I also find Jeff's patch [3] appealing.
Me too, though wonder whether feeding a file full of garbage wouldn't
be better, so as to trip up commands that try to read only from a
non-tty stdin.
Well, I guess I was too quick to pull the trigger after sending the
"What's cooking" out. Sorry about that.

On the other hand, I think these require relatively low impact changes
that can be handled in-tree and the downsides of the series like running
prerequisite tests more than once are not serious show stoppers, so it
isn't a disaster ;-)

Thanks both for noticing and commenting. Very much appreciated.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help