Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit bafa16e

Browse files
keszybzgitster
authored andcommitted
t4052: work around shells unable to set COLUMNS to 1
Signed-off-by: Zbigniew Jędrzejewski-Szmek <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d4958d3 commit bafa16e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/t4052-stat-output.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,15 +292,17 @@ cat >expect1-graph <<'EOF'
292292
EOF
293293
while read verb expect cmd args
294294
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)" '
296297
COLUMNS=1 git $cmd $args >output
297298
grep " | " output >actual &&
298299
test_cmp "$expect" actual
299300
'
300301

301302
test "$cmd" != diff || continue
302303

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)" '
304306
COLUMNS=1 git $cmd $args --graph >output
305307
grep " | " output >actual &&
306308
test_cmp "$expect-graph" actual

0 commit comments

Comments
 (0)