Skip to content

Commit

Permalink
Raise exception doctest build-finished handler if there was an error.
Browse files Browse the repository at this point in the history
Refs #9874
  • Loading branch information
martyngigg committed Aug 11, 2014
1 parent 2e3742c commit 6927464
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Code/Mantid/docs/sphinxext/mantiddoc/doctest.py
Expand Up @@ -511,11 +511,15 @@ def doctest_to_xunit(app, exception):
Arguments:
app (Sphinx.application): Sphinx application object
exception: (Exception): If an exception was raised then it is given here
exception: (Exception): If an exception was raised then it is given here.
It is simply re-raised if an error occurred
"""
if exception:
raise exception
if app.builder.name != "doctest":
app.debug("Skipping xunit parsing for builder '%s'" % app.builder.name)
return

import os

doctest_file = os.path.join(app.builder.outdir, DOCTEST_OUTPUT)
Expand Down

0 comments on commit 6927464

Please sign in to comment.