Browse Source

t6030: update to use test_i18ncmp

Since the git bisect output tested here is subject to translation, the
helper function test_i18ncmp should be used over test_cmp.

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Vasco Almeida 9 years ago committed by Junio C Hamano
parent
commit
c9e6ce41da
  1. 4
      t/t6030-bisect-porcelain.sh

4
t/t6030-bisect-porcelain.sh

@ -803,7 +803,7 @@ test_expect_success 'bisect terms needs 0 or 1 argument' '
test_must_fail git bisect terms 1 2 && test_must_fail git bisect terms 1 2 &&
test_must_fail git bisect terms 2>actual && test_must_fail git bisect terms 2>actual &&
echo "no terms defined" >expected && echo "no terms defined" >expected &&
test_cmp expected actual test_i18ncmp expected actual
' '


test_expect_success 'bisect terms shows good/bad after start' ' test_expect_success 'bisect terms shows good/bad after start' '
@ -875,7 +875,7 @@ test_expect_success 'bisect start --term-* does store terms' '
Your current terms are two for the old state Your current terms are two for the old state
and one for the new state. and one for the new state.
EOF EOF
test_cmp expected actual && test_i18ncmp expected actual &&
git bisect terms --term-bad >actual && git bisect terms --term-bad >actual &&
echo one >expected && echo one >expected &&
test_cmp expected actual && test_cmp expected actual &&

Loading…
Cancel
Save