From: Bruno Haible Date: Tue, 14 Mar 2006 14:13:34 +0000 (+0000) Subject: Hide xgettext warnings. X-Git-Tag: v0.15~293 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b44746da5bb39a1e7a8ef3eb4af26a2c1021c965;p=thirdparty%2Fgettext.git Hide xgettext warnings. --- diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 429afb77d..c4d90d2fb 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,7 @@ +2006-03-11 Bruno Haible + + * format-python-1: Hide xgettext warnings. + 2006-03-11 Bruno Haible Make the gettext-4 test work on MacOS X. diff --git a/gettext-tools/tests/format-python-1 b/gettext-tools/tests/format-python-1 index 2e478041e..27236973b 100755 --- a/gettext-tools/tests/format-python-1 +++ b/gettext-tools/tests/format-python-1 @@ -97,6 +97,7 @@ cat <<\EOF > f-p-1.data "abc%(addr).*x" EOF +tmpfiles="$tmpfiles f-p-1.err" : ${XGETTEXT=xgettext} n=0 while read comment; do @@ -106,7 +107,9 @@ while read comment; do cat < f-p-1-$n.in gettext(${string}); EOF - ${XGETTEXT} -L Python -o f-p-1-$n.po f-p-1-$n.in || exit 1 + # Hide xgettext's "The translator cannot reorder the arguments." warnings. + ${XGETTEXT} -L Python -o f-p-1-$n.po f-p-1-$n.in 2> f-p-1.err \ + || { cat f-p-1.err 1>&2; exit 1; } test -f f-p-1-$n.po || exit 1 fail= if echo "$comment" | grep 'Valid:' > /dev/null; then