changeset 19922:f27deed5c23f

tests: really test translations for rst syntax errors (issue4003) The variable LC_ALL did not work, use LANGUAGE instead. Before this patch, the original language C was generated (and tested) in every run.
author Simon Heimberg <simohe@besonet.ch>
date Fri, 18 Oct 2013 18:49:45 +0200
parents baf1600adfbe
children 52bc80d0769f
files tests/test-gendoc.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-gendoc.t	Fri Oct 18 18:49:32 2013 +0200
+++ b/tests/test-gendoc.t	Fri Oct 18 18:49:45 2013 +0200
@@ -9,7 +9,7 @@
   >     echo "% extracting documentation from $LOCALE"
   >     echo ".. -*- coding: utf-8 -*-" > gendoc-$LOCALE.txt
   >     echo "" >> gendoc-$LOCALE.txt
-  >     LC_ALL=$LOCALE python "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit
+  >     LANGUAGE=$LOCALE python "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit
   > 
   >     # We call runrst without adding "--halt warning" to make it report
   >     # all errors instead of stopping on the first one.