t4052: work around shells unable to set COLUMNS to 1
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 27 Apr 2012 09:25:25 +0000 (11:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Apr 2012 16:28:10 +0000 (09:28 -0700)
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4052-stat-output.sh

index ced32dbbcad38bfaf24dcb557777dea0db97ee4a..ddd94976c25584d4f8dca4265f10be967d7db378 100755 (executable)
@@ -292,7 +292,8 @@ cat >expect1-graph <<'EOF'
 EOF
 while read verb expect cmd args
 do
-       test_expect_success "$cmd $verb prefix greater than COLUMNS (big change)" '
+       test_expect_success COLUMNS_CAN_BE_1 \
+               "$cmd $verb prefix greater than COLUMNS (big change)" '
                COLUMNS=1 git $cmd $args >output
                grep " | " output >actual &&
                test_cmp "$expect" actual
@@ -300,7 +301,8 @@ do
 
        test "$cmd" != diff || continue
 
-       test_expect_success "$cmd --graph $verb prefix greater than COLUMNS (big change)" '
+       test_expect_success COLUMNS_CAN_BE_1 \
+               "$cmd --graph $verb prefix greater than COLUMNS (big change)" '
                COLUMNS=1 git $cmd $args --graph >output
                grep " | " output >actual &&
                test_cmp "$expect-graph" actual