Skip to content

Commit

Permalink
Print reason when building docs fails
Browse files Browse the repository at this point in the history
Print the reason when the building the docs test fails because Sphinx
exits with non-zero. Should help debug this test on Travis..
  • Loading branch information
seanh committed Jul 2, 2014
1 parent 8f7a628 commit 086fdeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/new_tests/test_coding_standards.py
Expand Up @@ -24,7 +24,8 @@ def test_building_the_docs():
['python', 'setup.py', 'build_sphinx', '--all-files', '--fresh-env'],
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as err:
assert False, "Building the docs failed: {err}".format(err=err)
assert False, "Building the docs failed: {err}".format(
err=err.message + ' ' + err.output)
output_lines = output.split('\n')

errors = [line for line in output_lines if 'ERROR' in line]
Expand Down

0 comments on commit 086fdeb

Please sign in to comment.