summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo Šegan <danilo@src.gnome.org>2006-04-01 19:01:30 +0000
committerDanilo Šegan <danilo@src.gnome.org>2006-04-01 19:01:30 +0000
commite5ef76add289d0007b1868bfa7aa381c2d8f831e (patch)
tree53ed418c5ef591ceafac69a53ca4428bf898aa82
parentdf6bf9a32cfb57c3b5ee144affbb30b9d12bee2a (diff)
downloadgnome-doc-utils-e5ef76add289d0007b1868bfa7aa381c2d8f831e.tar.gz
Test system changes.
-rwxr-xr-xxml2po/tests/test.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/xml2po/tests/test.py b/xml2po/tests/test.py
index c482b6e..aaed63a 100755
--- a/xml2po/tests/test.py
+++ b/xml2po/tests/test.py
@@ -9,6 +9,7 @@ SIMPLETESTS = { 'deep-finals.xml' : {},
'footnotes.xml': {},
'keepents.xml': { "options" : "-k" },
'adjacent-ents.xml': { "options" : "-k" },
+ 'ubuntu-mode.xml': { "options" : "-m ubuntu -k -l sr" },
}
OTHERTESTS = [ ('relnotes', 'test.sh') ]
@@ -22,10 +23,14 @@ if len(sys.argv) > 1:
for opt in sys.argv[2:]:
myopts += " " + opt
output = input.replace(".xml", ".xml.out")
- ret = os.system("../xml2po %s %s | sed 's/\"POT-Creation-Date: .*$/\"POT-Creation-Date: \\\\n\"/' | diff -u %s -" % (myopts, input, pot))
+ fullcommand = "../xml2po %s %s | sed 's/\"POT-Creation-Date: .*$/\"POT-Creation-Date: \\\\n\"/' | diff -u %s -" % (myopts, input, pot)
+ #print >>sys.stderr, fullcommand
+ ret = os.system(fullcommand)
if ret:
print "Problem: extraction from '%s'" % (input)
- ret = os.system("../xml2po -p %s %s %s | diff -u %s -" % (po, myopts, input, output))
+ fullcommand = "../xml2po -p %s %s %s | diff -u %s -" % (po, myopts, input, output)
+ #print >>sys.stderr, fullcommand
+ ret = os.system(fullcommand)
if ret:
print "Problem: merging translation into '%s'" % (input)
else: