kunit: tool: add support for filtering suites by glob
authorDaniel Latypov <dlatypov@google.com>
Sat, 6 Feb 2021 00:08:53 +0000 (16:08 -0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 8 Feb 2021 23:10:00 +0000 (16:10 -0700)
commitd992880b3d265597c5a16af3775257999492e957
treedfa85051d80c44cbb6423a0a4fe454cdd95a0e16
parent5d31f71efcb6bce56ca3ab92eed0c8f2dbcc6f9a
kunit: tool: add support for filtering suites by glob

This allows running different subsets of tests, e.g.

$ ./tools/testing/kunit/kunit.py build
$ ./tools/testing/kunit/kunit.py exec 'list*'
$ ./tools/testing/kunit/kunit.py exec 'kunit*'

This passes the "kunit_filter.glob" commandline option to the UML
kernel, which currently only supports filtering by suite name.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit.py
tools/testing/kunit/kunit_kernel.py
tools/testing/kunit/kunit_tool_test.py