From: Bruno Haible Date: Tue, 2 Oct 2018 12:43:43 +0000 (+0200) Subject: Fix msginit-4 test failure when run step-by-step. X-Git-Tag: v0.20~369 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f049581d84ca23ab0558acc706a066ce8f104cdd;p=thirdparty%2Fgettext.git Fix msginit-4 test failure when run step-by-step. * gettext-tools/tests/msginit-4: Don't assume that the test is run in a directory with just one POT file. --- diff --git a/gettext-tools/tests/msginit-4 b/gettext-tools/tests/msginit-4 index 19c442eeb..c37f3f51d 100755 --- a/gettext-tools/tests/msginit-4 +++ b/gettext-tools/tests/msginit-4 @@ -44,7 +44,8 @@ msgstr "" EOF : ${MSGINIT=msginit} -GETTEXTLIBDIR="$top_builddir"/src GETTEXTCLDRDIR="$abs_srcdir" ${MSGINIT} -l foo --no-translator --no-wrap -o mi-test4.tmp 2>mi-test4.err +GETTEXTLIBDIR="$top_builddir"/src GETTEXTCLDRDIR="$abs_srcdir" \ +${MSGINIT} -i mi-test4.pot -l foo --no-translator --no-wrap -o mi-test4.tmp 2>mi-test4.err test $? = 0 || { cat mi-test4.err 1>&2; Exit 1; } # The charset stored in the header entry is the locale encoding of the gl_IE