Skip to content

Commit efec1f5

Browse files
authored
chore(tooling): Fix invalid toml syntax in developer tooling (#358)
1 parent 0a98986 commit efec1f5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Makefile.internal.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ workspace = false
1919
command = "cargo"
2020
args = ["test", "--all-features"]
2121
# toolchain = "nightly"
22-
env = {
23-
RUSTFLAGS = "-Cinstrument-coverage",
24-
RUSTDOCFLAGS = "-Cinstrument-coverage",
25-
LLVM_PROFILE_FILE = "llvm_profile-%p-%m.profraw"
26-
}
22+
23+
[tasks.coverage-run-tests.env]
24+
RUSTFLAGS = "-Cinstrument-coverage"
25+
RUSTDOCFLAGS = "-Cinstrument-coverage"
26+
LLVM_PROFILE_FILE = "llvm_profile-%p-%m.profraw"
2727

2828
# After generating the .profraw, this step creates the html report.
2929
# Important! Keep in grcov flags in sync with Makefile.internal.toml.
@@ -47,7 +47,9 @@ args = [
4747
"--excl-line", "\\#\\[derive\\(|// cov\\(skip\\)",
4848
"--excl-br-line", "\\#\\[derive\\(|// cov\\(skip\\)",
4949
]
50-
env = { LLVM_PROFILE_FILE = "llvm_profile-%p-%m.profraw" }
50+
51+
[tasks.coverage-run-grcov.env]
52+
LLVM_PROFILE_FILE = "llvm_profile-%p-%m.profraw"
5153

5254
# Cleans up all of the .profraw files left over after running -C instrument-coverage
5355
[tasks.coverage-clean-profraw]

0 commit comments

Comments
 (0)