Properly return exit code from nose.

This commit is contained in:
Beau Gunderson 2009-04-16 17:59:38 +00:00
parent 321d4ce27c
commit d03540faf3

View file

@ -62,7 +62,10 @@ def main():
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__":
main()