t4052: work around shells unable to set COLUMNS to 1

Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Zbigniew Jędrzejewski-Szmek committed Apr 27, 2012 at 11:25 UTC bafa16e53c8845f3d3b7713dcbef8a5c841cadad
1 file changed +4 -2
t/t4052-stat-output.sh
+4 -2
@@ -292,7 +292,8 @@ cat >expect1-graph <<'EOF'
292 EOF
293 while read verb expect cmd args
294 do
295 - test_expect_success "$cmd $verb prefix greater than COLUMNS (big change)" '
295 + test_expect_success COLUMNS_CAN_BE_1 \
296 + "$cmd $verb prefix greater than COLUMNS (big change)" '
297 COLUMNS=1 git $cmd $args >output
298 grep " | " output >actual &&
299 test_cmp "$expect" actual
@@ -300,7 +301,8 @@ do
301
302 test "$cmd" != diff || continue
303
303 - test_expect_success "$cmd --graph $verb prefix greater than COLUMNS (big change)" '
304 + test_expect_success COLUMNS_CAN_BE_1 \
305 + "$cmd --graph $verb prefix greater than COLUMNS (big change)" '
306 COLUMNS=1 git $cmd $args --graph >output
307 grep " | " output >actual &&
308 test_cmp "$expect-graph" actual