t6040: test branch -vv

t6040 has a test for 'git branch -v' but not for 'git branch -vv'. Add one. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael J Gruber committed Aug 26, 2011 at 16:05 UTC afc1692fefe0dc357d9ff5353ab77d14b26d7ab9
1 file changed +16
t/t6040-tracking-info.sh
+16
@@ -51,6 +51,22 @@ test_expect_success 'branch -v' '
51 test_i18ncmp expect actual
52 '
53
54 +cat >expect <<\EOF
55 +b1 origin/master: ahead 1, behind 1
56 +b2 origin/master: ahead 1, behind 1
57 +b3 origin/master: behind 1
58 +b4 origin/master: ahead 2
59 +EOF
60 +
61 +test_expect_success 'branch -vv' '
62 + (
63 + cd test &&
64 + git branch -vv
65 + ) |
66 + sed -n -e "$script" >actual &&
67 + test_i18ncmp expect actual
68 +'
69 +
70 test_expect_success 'checkout' '
71 (
72 cd test && git checkout b1