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):
523
523
>>> rb.config_toml = 'rustc = "rustc"\\ n'
524
524
>>> rb.program_config('rustc')
525
525
'rustc'
526
- >>> cargo_path = rb.program_config('cargo')
527
- >>> cargo_path.rstrip(".exe") == os.path.join("/tmp/rust",
528
- ... "bin", "cargo")
529
- True
530
526
>>> rb.config_toml = ''
531
527
>>> cargo_path = rb.program_config('cargo')
532
528
>>> cargo_path.rstrip(".exe") == os.path.join(rb.bin_root(),
Original file line number Diff line number Diff line change 15
15
import unittest
16
16
import tempfile
17
17
import hashlib
18
+ import sys
18
19
19
20
from shutil import rmtree
20
21
@@ -110,5 +111,6 @@ def test_same_dates(self):
110
111
TEST_LOADER .loadTestsFromTestCase (VerifyTestCase ),
111
112
TEST_LOADER .loadTestsFromTestCase (ProgramOutOfDate )])
112
113
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