Skip to content

Commit 46af189

Browse files
author
hyd-dev
committed
Drop MIRIFLAGS from "no rebuild" test
1 parent 9c1342b commit 46af189

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test-cargo-miri/run-test.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,19 @@ def test_no_rebuild(name, cmd, env={}):
7373
fail("Something was being rebuilt when it should not be (or we got no output)");
7474

7575
def test_cargo_miri_run():
76-
default_env={
77-
'MIRIFLAGS': "-Zmiri-disable-isolation",
78-
'MIRITESTVAR': "wrongval", # make sure the build.rs value takes precedence
79-
}
8076
test("`cargo miri run` (no isolation)",
8177
cargo_miri("run"),
8278
"run.default.stdout.ref", "run.default.stderr.ref",
8379
stdin=b'12\n21\n',
84-
env=default_env,
80+
env={
81+
'MIRIFLAGS': "-Zmiri-disable-isolation",
82+
'MIRITESTVAR': "wrongval", # make sure the build.rs value takes precedence
83+
},
8584
)
8685
# Special test: run it again *without* `-q` to make sure nothing is being rebuilt (Miri issue #1722)
8786
test_no_rebuild("`cargo miri run` (no rebuild, no isolation)",
8887
cargo_miri("run", quiet=False) + ["--", ""],
89-
env=default_env,
88+
env={'MIRITESTVAR': "wrongval"},
9089
)
9190
test("`cargo miri run` (with arguments and target)",
9291
cargo_miri("run") + ["--bin", "cargo-miri-test", "--", "hello world", '"hello world"'],

0 commit comments

Comments
 (0)