[py-svn] r21481 - py/dist/py/rest
cfbolz at codespeak.net
cfbolz at codespeak.net
Thu Dec 22 00:19:28 CET 2005
Author: cfbolz
Date: Thu Dec 22 00:19:27 2005
New Revision: 21481
Modified:
py/dist/py/rest/latex.py
Log:
don't rerun indefinitely
Modified: py/dist/py/rest/latex.py
==============================================================================
--- py/dist/py/rest/latex.py (original)
+++ py/dist/py/rest/latex.py Thu Dec 22 00:19:27 2005
@@ -124,13 +124,14 @@
if rest_options is not None:
options.extend(rest_options)
publish_cmdline(writer_name='latex', argv=options)
-
- while True:
+ i = 0
+ while i < 10: # there should never be as many as five reruns, but to be sure
latexoutput = py.process.cmdexec("pdflatex %s" % (tex, ))
if debug:
print latexoutput
if py.std.re.search("LaTeX Warning:.*Rerun", latexoutput) is None:
break
+ i += 1
old.chdir()
#cleanup:
More information about the pytest-commit
mailing list