Skip to content

Commit 2b4c7df

Browse files
committed
runtests.py should return the error code from nosetests so travis knows it's failed
1 parent 18af760 commit 2b4c7df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pythonnet/src/tests/runtests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ def main(verbosity=1):
6262
module = __import__(name)
6363
suite.addTests((module.test_suite(),))
6464

65-
unittest.TextTestRunner(verbosity=verbosity).run(suite)
65+
return unittest.TextTestRunner(verbosity=verbosity).run(suite)
6666

6767
if __name__ == '__main__':
68-
main(1)
68+
result = main(1)
6969
if '--pause' in sys.argv:
7070
print "Press enter to continue"
7171
raw_input()
72+
sys.exit(result)
73+

0 commit comments

Comments
 (0)