diff options
author | Mike Frysinger <vapier@google.com> | 2016-05-04 19:22:56 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2016-05-12 00:09:48 +0000 |
commit | 0a1e8462677c5aafcb0c867b398691c9d63855df (patch) | |
tree | 52b33d4d4e761f33c1ead1c54dfa239d166ec3d7 | |
parent | f104ad1f86fb348dea97541382d5fa16fdb7033f (diff) | |
download | bdk-0a1e8462677c5aafcb0c867b398691c9d63855df.tar.gz |
test_runner: fail fast & do not buffer
The buffer flag was added w/out a specific reason that I can see. Back
that out so we get more immediate output rather than wait for all tests
to finish, and make it so we abort on the first test failure. Otherwise,
if something is hung, CTRL+C will kill the test w/no output at all.
Bug: None
Change-Id: Ia28318a8ccda136ba044861d950578b3cd591888
Test: `python cli/lib/test_runner.py` shows immediate output & failure
-rw-r--r-- | cli/lib/test_runner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/lib/test_runner.py b/cli/lib/test_runner.py index 572fb05..a9440f5 100644 --- a/cli/lib/test_runner.py +++ b/cli/lib/test_runner.py @@ -26,6 +26,6 @@ if __name__ == '__main__': testsuite = unittest.TestLoader().discover( start_dir=os.path.dirname(__file__), pattern='*_unittest.py') - ret = unittest.TextTestRunner(verbosity=1, buffer=True).run(testsuite) + ret = unittest.TextTestRunner(verbosity=1, failfast=True).run(testsuite) if not ret.wasSuccessful(): sys.exit(1) |