Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
runtests.py should return the error code from nosetests so travis kno…
…ws it's failed
  • Loading branch information
tonyroberts committed Feb 27, 2014
commit 2b4c7dff582722db0c32fab5dfaba4c8eade6218
6 changes: 4 additions & 2 deletions pythonnet/src/tests/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ def main(verbosity=1):
module = __import__(name)
suite.addTests((module.test_suite(),))

unittest.TextTestRunner(verbosity=verbosity).run(suite)
return unittest.TextTestRunner(verbosity=verbosity).run(suite)

if __name__ == '__main__':
main(1)
result = main(1)
if '--pause' in sys.argv:
print "Press enter to continue"
raw_input()
sys.exit(result)