t9002: work around shells that are unable to set COLUMNS to 1

In t9002-column.sh, file with expected output was shared between two test cases, but set in the first one. Since the first test case can now be skipped, setting up the expected output is moved outside of the test case. 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 f78b1c5f8237d68fffe7c04d22bf93f2ad0bc730
1 file changed +3 -2
t/t9002-column.sh
+3 -2
@@ -50,8 +50,7 @@ EOF
50 test_cmp expected actual
51 '
52
53 -test_expect_success 'COLUMNS = 1' '
54 - cat >expected <<\EOF &&
53 +cat >expected <<\EOF
54 one
55 two
56 three
@@ -64,6 +63,8 @@ nine
63 ten
64 eleven
65 EOF
66 +
67 +test_expect_success COLUMNS_CAN_BE_1 'COLUMNS = 1' '
68 COLUMNS=1 git column --mode=column <lista >actual &&
69 test_cmp expected actual
70 '