web/test/unittest_pdf.py
branchstable
changeset 4676 b0937a191f94
parent 3259 2c5c1f434640
child 5031 60c4dea96afa
--- 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()