mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Remove invalid doctest from bootstrap.py.
Make sure that if the test is failed, the CI will stop the build.
This commit is contained in:
parent
efceda220e
commit
4d06185688
@ -523,10 +523,6 @@ class RustBuild(object):
|
||||
>>> rb.config_toml = 'rustc = "rustc"\\n'
|
||||
>>> rb.program_config('rustc')
|
||||
'rustc'
|
||||
>>> cargo_path = rb.program_config('cargo')
|
||||
>>> cargo_path.rstrip(".exe") == os.path.join("/tmp/rust",
|
||||
... "bin", "cargo")
|
||||
True
|
||||
>>> rb.config_toml = ''
|
||||
>>> cargo_path = rb.program_config('cargo')
|
||||
>>> cargo_path.rstrip(".exe") == os.path.join(rb.bin_root(),
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user