Skip to content

Conversation

@CamilaAlvarez
Copy link
Contributor

The --filter option allows passing a file that will work as a filter for picking results for a set of devices and tests. The filters are strict in the sense that the test path must match the filter exactly to be included in the results.

This PR allows referencing both hardware and tests using wildcards.
All of the follow would now be considered a valid reference to a test or set of tests: kunit, kunit.*, kselftest.iommu.*.

The new format would support a file like this:

hardware:
  - radxa,rock2-square
  - fsl,imx6q
  - dell-latitude-3445-7520c-skyrim
test:
  - kselftest.iommu.*
  - kselftest.dt
  - kunit.*

closes #163

Each test filter is passed into a regex, then every test is matched
against said regex.

Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
@aliceinwire aliceinwire merged commit 24ee9bb into kernelci:main May 8, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

results: support wildcard in tests filter file

2 participants