Skip to content

Commit

Permalink
cleaning up nose error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Aug 4, 2016
1 parent 2edb034 commit 8b0a15c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Expand Up @@ -62,9 +62,9 @@
# built documents.
#
# The short X.Y version.
version = u'0.0.2'
version = u'0.0.3'
# The full version, including alpha/beta/rc tags.
release = u'0.0.2'
release = u'0.0.3'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -153,7 +153,7 @@
# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#
# html_title = u'Karr Lab build utilities v0.0.2'
# html_title = u'Karr Lab build utilities v0.0.3'

# A shorter title for the navigation bar. Default is the same as html_title.
#
Expand Down
11 changes: 9 additions & 2 deletions karr_lab_build_utils/core.py
Expand Up @@ -15,6 +15,7 @@
import pysftp
import shutil
import subprocess
import sys
import tempfile


Expand Down Expand Up @@ -198,8 +199,14 @@ def run_tests(self, test_path='tests', with_xml_report=False, with_coverage=Fals
raise BuildHelperError('Package directory not set')
cmd.append('--with-coverage')
cmd.append('--cover-package=%s' % self.package_dir)

subprocess.check_call(cmd)

try:
subprocess.check_call(cmd)
except subprocess.CalledProcessError:
sys.exit(1)
except Exception:
exc_info = sys.exc_info()
raise exc_info[1], None, exc_info[2]

if with_xml_report and self.build_test_dir:
shutil.copyfile(abs_nose_latest_filename, os.path.join(self.build_test_dir, 'nose.xml'))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@
import os

# version
version = '0.0.2'
version = '0.0.3'

# parse requirements.txt
install_requires = [line.rstrip() for line in open('requirements.txt')]
Expand Down

0 comments on commit 8b0a15c

Please sign in to comment.