Properly return exit code from nose.
This commit is contained in:
parent
321d4ce27c
commit
d03540faf3
1 changed files with 4 additions and 1 deletions
|
@ -62,7 +62,10 @@ def main():
|
||||||
argv.append('-v')
|
argv.append('-v')
|
||||||
argv.append('-v')
|
argv.append('-v')
|
||||||
|
|
||||||
nose.run(argv=argv, plugins=[TodoPlugin()])
|
if not nose.run(argv=argv, plugins=[TodoPlugin()]):
|
||||||
|
sys.exit(1)
|
||||||
|
else:
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue