coverage: Register test::Coverage as the test suite for tests/coverage
This restores the ability to run a coverage test by specifying its path, e.g. `./x.py test tests/coverage/if.rs`. This runs the test in both modes.
This commit is contained in:
parent
49127c64d6
commit
4e6f438d2a
2 changed files with 12 additions and 8 deletions
|
|
@ -1423,7 +1423,7 @@ impl Step for Coverage {
|
|||
const ONLY_HOSTS: bool = false;
|
||||
|
||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||
run.alias(Self::SUITE)
|
||||
run.suite_path(Self::PATH)
|
||||
}
|
||||
|
||||
fn make_run(run: RunConfig<'_>) {
|
||||
|
|
@ -1438,6 +1438,7 @@ impl Step for Coverage {
|
|||
}
|
||||
}
|
||||
|
||||
// Aliases for running the coverage tests in only one mode.
|
||||
coverage_test_alias!(CoverageMap {
|
||||
alias_and_mode: "coverage-map",
|
||||
default: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue