Skip to content

rustbuild: Unrecognized option: 'filter' #38275

Closed
@petrochenkov

Description

@petrochenkov

The option --filter testname for running specific tests is documented in CONTRIBUTING.md and bootstrap/README.md.

There's one problem however, this option doesn't exist!

$ ../x.py test src/test/run-make --filter graphviz
    Finished debug [unoptimized] target(s) in 0.0 secs
failed to parse options: Unrecognized option: 'filter'.
Usage: x.py test [options] [<args>...]

The correct invocation uses highly unobvious --test-args instead of --filter:

../x.py test src/test/run-make --test-args graphviz

I'd never guess it without some digging through the source code, it's very surprising to me that people somehow use rustbuild for some time but nobody still reported this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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