From ae3bedd5cdfa2d374a7ea00150ed113b0845b14a Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 29 Jul 2009 22:21:55 +0200 Subject: [PATCH] Skip tests requiring 'iconv' when that is not found Signed-off-by: Johannes Schindelin --- t/t3900-i18n-commit.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/t3900-i18n-commit.sh b/t/t3900-i18n-commit.sh index 256c4c9701..a0fb178a67 100755 --- a/t/t3900-i18n-commit.sh +++ b/t/t3900-i18n-commit.sh @@ -64,6 +64,13 @@ test_expect_success 'config to remove customization' ' git config i18n.commitencoding UTF-8 ' +iconv --help 2>/dev/null >/dev/null +test $? = 127 && { + say "No iconv found; skip rest" + test_done + exit +} + test_expect_success 'ISO8859-1 should be shown in UTF-8 now' ' compare_with ISO8859-1 "$TEST_DIRECTORY"/t3900/1-UTF-8.txt '