Thread (16 messages) flat view 16 messages, 4 authors, 2016-06-15

Re: [PATCH v7a 6/9] diff --stat: use a maximum of 5/8 for the filename part

From: Jeff King <hidden>
Date: 2016-06-15 22:53:23

Possibly related (same subject, not in this thread)

On Thu, Mar 01, 2012 at 01:26:43PM +0100, Zbigniew Jędrzejewski-Szmek wrote:
---
 Documentation/diff-options.txt |   14 ++++---
 diff.c                         |   90 ++++++++++++++++++++++++++--------------
 t/t4052-stat-output.sh         |   16 +++----
 3 files changed, 76 insertions(+), 44 deletions(-)
I am seeing test failures from t4052 in 'master'. Bisecting points to
1b058bc (diff --stat: use a maximum of 5/8 for the filename part,
2012-03-01). The output from the test script looks like this:
--- expect      2012-03-26 23:41:29.688039554 +0000
+++ actual      2012-03-26 23:41:29.696039549 +0000
@@ -1 +1 @@
- ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |    1 +
+ ...aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |    1 +
not ok - 8 diff: small change with long name gives more space to the name
#       
#                       git $cmd $args >output &&
#                       grep " | " output >actual &&
#                       test_cmp expect actual
#               

There are a few other failures, but they all have the same mismatched
length (the output is slightly longer than expected). I know Junio won't
push out a 'master' that doesn't pass the tests for him, so I'm
wondering if some environment information like the terminal width is
leaking through the test scripts.

I haven't actually investigated any further yet, but I thought I'd first
see if anything obvious occurs to you.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help