Skip to content

Commit 41df502

Browse files
committed
Auto merge of #1091 - RalfJung:run-test, r=RalfJung
run-test: make sure the sysroot building output does not distort our tests
2 parents fbe9076 + 3de5bd7 commit 41df502

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test-cargo-miri/run-test.py

+4
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)