1
0
mirror of https://github.com/Yubico/yubiadmin.git synced 2025-02-20 14:54:30 +01:00

Handle tests.

This commit is contained in:
Dain Nilsson 2013-05-02 11:43:48 +02:00
parent fda9e818e0
commit 588f3df72b

View File

@ -101,7 +101,12 @@ class release(Command):
if not self.skip_tests:
self.run_command('check')
self.run_command('test')
#Nosetests calls sys.exit(status)
try:
self.run_command('nosetests')
except SystemExit as e:
if e.code != 0:
raise DistutilsSetupError("There were test failures!")
self.run_command('sdist') # upload --sign --identity keyid