mirror of
https://github.com/Yubico/yubiadmin.git
synced 2025-02-20 14:54:30 +01:00
Handle tests.
This commit is contained in:
parent
fda9e818e0
commit
588f3df72b
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user