[test] skip test when fop failed stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 24 Feb 2010 10:33:31 +0100
branchstable
changeset 4676 b0937a191f94
parent 4675 9233a8350420
child 4677 c701aac36f5c
[test] skip test when fop failed
web/test/unittest_pdf.py
--- a/web/test/unittest_pdf.py	Wed Feb 24 10:32:22 2010 +0100
+++ b/web/test/unittest_pdf.py	Wed Feb 24 10:33:31 2010 +0100
@@ -27,6 +27,8 @@
         fopproc = sub(['/usr/bin/fop', foptmp.name, pdftmp.name])
         fopproc.wait()
         del foptmp
+        if fopproc.returncode:
+            self.skip('fop returned status %s' % fopproc.returncode)
         pdftmp.seek(0) # a bit superstitious
         reference = open(osp.join(DATADIR, 'sample1.pdf'), 'r').read()
         output = pdftmp.read()