From 4c1c6140995951945d14b58f0f92f08281742dc1 Mon Sep 17 00:00:00 2001 From: Andrey Zelenkov Date: Mon, 15 Jan 2018 17:51:54 +0300 Subject: Tests: exit with runner result. --- test/run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/run.py') diff --git a/test/run.py b/test/run.py index 749c11d7..01765249 100755 --- a/test/run.py +++ b/test/run.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import unittest +import sys import os loader = unittest.TestLoader() @@ -11,4 +12,5 @@ tests = loader.discover(start_dir=this_dir) suite.addTests(tests) runner = unittest.TextTestRunner(verbosity=3) -result = runner.run(suite) +result = not runner.run(suite).wasSuccessful() +sys.exit(result) -- cgit