Skip to content

All wpt subcommands should support non-standard test roots #53939

@jonathan-j-lee

Description

@jonathan-j-lee

Some wpt subcommands like tests-affected assume that the tests are located somewhere relative to the tooling source file, e.g.

here = os.path.dirname(__file__)
wpt_root = os.path.abspath(os.path.join(here, os.pardir, os.pardir))

interface_dir = os.path.join(wpt_root, 'interfaces')

This is problematic for vendors like Chromium where:

To support this structure, all wpt subcommands that interact with the repo should support an overridable --tests-root option. Some subcommands have already implemented this, such as:

  • wpt run --tests
  • wpt lint --repo-root

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions