diff options
| author | kennytm <kennytm@gmail.com> | 2017-09-02 19:59:53 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2017-09-02 22:11:25 +0800 |
| commit | 4d06185688aa2bc533776669b53a2479e2cf3e8c (patch) | |
| tree | 623194deb89bbb8b5c19020c44be8c66b2982980 /src/bootstrap/bootstrap_test.py | |
| parent | efceda220e92f02f7a29a15e4cf56f5a3cdf1792 (diff) | |
| download | rust-4d06185688aa2bc533776669b53a2479e2cf3e8c.tar.gz rust-4d06185688aa2bc533776669b53a2479e2cf3e8c.zip | |
Remove invalid doctest from bootstrap.py.
Make sure that if the test is failed, the CI will stop the build.
Diffstat (limited to 'src/bootstrap/bootstrap_test.py')
| -rw-r--r-- | src/bootstrap/bootstrap_test.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bootstrap/bootstrap_test.py b/src/bootstrap/bootstrap_test.py index a65a3a4042e..32ea4b4abe6 100644 --- a/src/bootstrap/bootstrap_test.py +++ b/src/bootstrap/bootstrap_test.py @@ -15,6 +15,7 @@ import doctest import unittest import tempfile import hashlib +import sys from shutil import rmtree @@ -110,5 +111,6 @@ if __name__ == '__main__': TEST_LOADER.loadTestsFromTestCase(VerifyTestCase), TEST_LOADER.loadTestsFromTestCase(ProgramOutOfDate)]) - RUNNER = unittest.TextTestRunner(verbosity=2) - RUNNER.run(SUITE) + RUNNER = unittest.TextTestRunner(stream=sys.stdout, verbosity=2) + result = RUNNER.run(SUITE) + sys.exit(0 if result.wasSuccessful() else 1) |
