Commits

Anonymous committed 0dc9cfc

roptest: return with exitcode != 0 if something failed

  • Participants
  • Parent commits c824a7f

Comments (0)

Files changed (3)

File ropetest/__init__.py

+import sys
 import unittest
 
 import ropetest.projecttest
 
 if __name__ == '__main__':
     runner = unittest.TextTestRunner()
-    runner.run(suite())
+    result = runner.run(suite())
+    sys.exit(not result.wasSuccessful())

File ropetest/contrib/__init__.py

+import sys
 import unittest
 
 import ropetest.contrib.autoimporttest
 
 if __name__ == '__main__':
     runner = unittest.TextTestRunner()
-    runner.run(suite())
+    result = runner.run(suite())
+    sys.exit(not result.wasSuccessful())

File ropetest/refactor/__init__.py

         unittest.main()
     else:
         runner = unittest.TextTestRunner()
-        runner.run(suite())
+        result = runner.run(suite())
+        sys.exit(not result.wasSuccessful())