Skip to content

bootstrap: make --exclude consistent with --skip in libtest #111894

Closed
@jyn514

Description

@jyn514

Right now, there are two ways to ignore tests:

  1. Pass x test --exclude tests/ui/weird-exprs.rs to bootstrap
  2. Pass x test --test-args --skip=tests/ui/weird-exprs.rs to compiletest

It's weird that these use different arguments. --skip is public-facing, so we should rename --exclude to --skip in bootstrap.

I don't have a strong opinion on whether to keep --exclude around as an alias for --skip, but --skip should be the one we document.

Note that --exclude is slightly different from --skip because it can also applies to whole Steps, not just tests, and doesn't support substring matching. But I don't think it's different enough to be worth having a different name.

Metadata

Metadata

Assignees

Labels

A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions