Patchwork [2,of,3,STABLE?] tests: test-gendoc.t checks if anything was translated

login
register
mail settings
Submitter Simon Heimberg
Date July 25, 2013, 7:19 p.m.
Message ID <441dffe48410604c3915.1374779991@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/1962/
State Superseded
Commit 52bc80d0769fcc4db3c414266c84cce257580f5b
Headers show

Comments

Simon Heimberg - July 25, 2013, 7:19 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1374778765 -7200
# Node ID 441dffe48410604c391552585154318061b61930
# Parent  02c7739c841d08a4b2e22f4cd6f8ca00d0559e82
tests: test-gendoc.t checks if anything was translated

This triggered before the last patch was applied.

Patch

diff -r 02c7739c841d -r 441dffe48410 tests/test-gendoc.t
--- a/tests/test-gendoc.t	Don Jul 25 20:59:23 2013 +0200
+++ b/tests/test-gendoc.t	Don Jul 25 20:59:25 2013 +0200
@@ -11,6 +11,10 @@ 
   >     echo "" >> gendoc-$LOCALE.txt
   >     LANGUAGE=$LOCALE python "$TESTDIR/../doc/gendoc.py" >> gendoc-$LOCALE.txt 2> /dev/null || exit 3
   > 
+  >     if [ $LOCALE != C ]; then
+  >         diff -q gendoc-C.txt gendoc-$LOCALE.txt > /dev/null && echo '** NOTHING TRANSLATED **'
+  >     fi
+  > 
   >     # We call runrst without adding "--halt warning" to make it report
   >     # all errors instead of stopping on the first one.
   >     echo "checking for parse errors"