File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,11 @@ def tests(session: nox.Session) -> None:
59
59
pathlib .Path ("." ) / ".rust-cov" / str (uuid .uuid4 ())
60
60
).absolute ()
61
61
if session .name != "tests-nocoverage" :
62
+ rustflags = session .env .get ("RUSTFLAGS" , "" )
63
+ assert rustflags is not None
62
64
session .env .update (
63
65
{
64
- "RUSTFLAGS" : "-Cinstrument-coverage "
65
- + session .env .get ("RUSTFLAGS" , "" ),
66
+ "RUSTFLAGS" : f"-Cinstrument-coverage { rustflags } " ,
66
67
"LLVM_PROFILE_FILE" : str (prof_location / "cov-%p.profraw" ),
67
68
}
68
69
)
@@ -218,10 +219,11 @@ def rust(session: nox.Session) -> None:
218
219
prof_location = (
219
220
pathlib .Path ("." ) / ".rust-cov" / str (uuid .uuid4 ())
220
221
).absolute ()
222
+ rustflags = session .env .get ("RUSTFLAGS" , "" )
223
+ assert rustflags is not None
221
224
session .env .update (
222
225
{
223
- "RUSTFLAGS" : "-Cinstrument-coverage "
224
- + session .env .get ("RUSTFLAGS" , "" ),
226
+ "RUSTFLAGS" : f"-Cinstrument-coverage { rustflags } " ,
225
227
"LLVM_PROFILE_FILE" : str (prof_location / "cov-%p.profraw" ),
226
228
}
227
229
)
You can’t perform that action at this time.
0 commit comments