about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-11-01 21:07:07 +1100
committerZalathar <Zalathar@users.noreply.github.com>2023-11-07 11:15:19 +1100
commit4e6f438d2ace2f5297cea2d3e331c6dccd4e18c2 (patch)
treecde84dceff57365224b5d164bdd16589f02e1df4 /src/bootstrap
parent49127c64d6998526d9f723a653312d0cf5310454 (diff)
downloadrust-4e6f438d2ace2f5297cea2d3e331c6dccd4e18c2.tar.gz
rust-4e6f438d2ace2f5297cea2d3e331c6dccd4e18c2.zip
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.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/build_steps/test.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
index da4b135083c..39667d16b7b 100644
--- a/src/bootstrap/src/core/build_steps/test.rs
+++ b/src/bootstrap/src/core/build_steps/test.rs
@@ -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,