File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -523,10 +523,6 @@ def program_config(self, program):
523523 >>> rb.config_toml = 'rustc = "rustc"\\ n'
524524 >>> rb.program_config('rustc')
525525 'rustc'
526- >>> cargo_path = rb.program_config('cargo')
527- >>> cargo_path.rstrip(".exe") == os.path.join("/tmp/rust",
528- ... "bin", "cargo")
529- True
530526 >>> rb.config_toml = ''
531527 >>> cargo_path = rb.program_config('cargo')
532528 >>> cargo_path.rstrip(".exe") == os.path.join(rb.bin_root(),
Original file line number Diff line number Diff line change 1515import unittest
1616import tempfile
1717import hashlib
18+ import sys
1819
1920from shutil import rmtree
2021
@@ -110,5 +111,6 @@ def test_same_dates(self):
110111 TEST_LOADER .loadTestsFromTestCase (VerifyTestCase ),
111112 TEST_LOADER .loadTestsFromTestCase (ProgramOutOfDate )])
112113
113- RUNNER = unittest .TextTestRunner (verbosity = 2 )
114- RUNNER .run (SUITE )
114+ RUNNER = unittest .TextTestRunner (stream = sys .stdout , verbosity = 2 )
115+ result = RUNNER .run (SUITE )
116+ sys .exit (0 if result .wasSuccessful () else 1 )
You can’t perform that action at this time.
0 commit comments