Skip tests requiring 'iconv' when that is not found

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2009-07-29 22:21:55 +02:00
parent 35f39b14ea
commit ae3bedd5cd

View File

@@ -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
'