Skip to content

Commit 3de5bd7

Browse files
committed
run-test: make sure the sysroot building output does not distort our tests
1 parent fbe9076 commit 3de5bd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test-cargo-miri/run-test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ def test_cargo_miri_test():
6767

6868
os.chdir(os.path.dirname(os.path.realpath(__file__)))
6969

70+
if not 'MIRI_SYSROOT' in os.environ:
71+
# Make sure we got a working sysroot.
72+
# (If the sysroot gets built later when output is compared, that leads to test failures.)
73+
subprocess.run(cargo_miri("setup"), check=True)
7074
test_cargo_miri_run()
7175
test_cargo_miri_test()
7276

0 commit comments

Comments
 (0)