From 858c77529624febc5e3fe3cd5b6c11570d0c08d1 Mon Sep 17 00:00:00 2001 From: Martyn Gigg Date: Sun, 3 Aug 2014 18:46:47 +0100 Subject: [PATCH] Add in some debug statements. Refs #9874 --- Code/Mantid/docs/sphinxext/mantiddoc/doctest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Code/Mantid/docs/sphinxext/mantiddoc/doctest.py b/Code/Mantid/docs/sphinxext/mantiddoc/doctest.py index 9ecf559ce145..b826f05f164b 100644 --- a/Code/Mantid/docs/sphinxext/mantiddoc/doctest.py +++ b/Code/Mantid/docs/sphinxext/mantiddoc/doctest.py @@ -447,12 +447,16 @@ def doctest_to_xunit(app, exception): exception: (Exception): If an exception was raised then it is given here """ 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) + app.debug("Parsing doctest output file '%s'" % doctest_file) doctests = DocTestOutputParser(doctest_file) + app.debug("Saving doctest as xunit to file '%s'" % doctest_file) xunit_file = os.path.join(app.builder.outdir, XUNIT_OUTPUT) + doctests.as_xunit(xunit_file) #-------------------------------------------------------------------------------