Skip to content

Commit 886a5f7

Browse files
committed
Make unit test runner exit with proper status
1 parent 69eab3d commit 886a5f7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@ def setup_tincan_path():
7979
test_pardir = locate_package('test')
8080
test_dir = os.path.join(test_pardir, 'test')
8181
suite = loader.discover(test_dir, pattern='*_test.py')
82-
unittest.TextTestRunner(verbosity=1).run(suite)
82+
ret = unittest.TextTestRunner(verbosity=1).run(suite).wasSuccessful()
83+
sys.exit(ret)

0 commit comments

Comments
 (0)