mirror of
https://github.com/git/git
synced 2024-09-13 13:24:41 +00:00
t0205: drop redundant test
We check that a shell variable is non-empty, and then we check that it's equal to a particular value. Just checking the latter covers both cases. I suspect the original was trying to give better output when the test fails, but using "-x" covers that these days. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8279ed033f
commit
1cdc62f6f1
|
@ -7,10 +7,6 @@ test_description='Gettext Shell poison'
|
||||||
|
|
||||||
. ./lib-gettext.sh
|
. ./lib-gettext.sh
|
||||||
|
|
||||||
test_expect_success GETTEXT_POISON "sanity: \$GIT_INTERNAL_GETTEXT_SH_SCHEME is set (to $GIT_INTERNAL_GETTEXT_SH_SCHEME)" '
|
|
||||||
test -n "$GIT_INTERNAL_GETTEXT_SH_SCHEME"
|
|
||||||
'
|
|
||||||
|
|
||||||
test_expect_success GETTEXT_POISON 'sanity: $GIT_INTERNAL_GETTEXT_SH_SCHEME" is poison' '
|
test_expect_success GETTEXT_POISON 'sanity: $GIT_INTERNAL_GETTEXT_SH_SCHEME" is poison' '
|
||||||
test "$GIT_INTERNAL_GETTEXT_SH_SCHEME" = "poison"
|
test "$GIT_INTERNAL_GETTEXT_SH_SCHEME" = "poison"
|
||||||
'
|
'
|
||||||
|
|
Loading…
Reference in a new issue