diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-23 05:32:37 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-23 05:34:21 +0200 |
commit | b722f3d6fc72877e8caaaae7291d5d736ddc494d (patch) | |
tree | 7ca4476b7bed60a3a3b8b6931068a1852779548c /uitest | |
parent | 65dd6547f33a1b10a084625b8a02ab277d26f81e (diff) |
uitest: improve the message of the ui test runner
Change-Id: I5026590506b4ddf3db95fb14fe6b0890255a5a25
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/test_main.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/uitest/test_main.py b/uitest/test_main.py index 15e5d708134f..72c18bab62c9 100644 --- a/uitest/test_main.py +++ b/uitest/test_main.py @@ -95,6 +95,12 @@ if __name__ == '__main__': sys.exit() test_suite = get_test_suite(opts) - unittest.TextTestRunner().run(test_suite) + result = unittest.TextTestRunner(verbosity=2).run(test_suite) + print("Tests run: %d" % result.testsRun) + print("Tests failed: %d" % len(result.failures)) + print("Tests errors: %d" % len(result.errors)) + if not result.wasSuccessful(): + sys.exit(1) + sys.exit(0) # vim:set shiftwidth=4 softtabstop=4 expandtab: */ |