diff options
author | Simon Glass <sjg@chromium.org> | 2022-04-30 00:56:55 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-05-02 09:58:13 -0400 |
commit | 313438c971d42a2cb1abfc824ece4e6c1b82776a (patch) | |
tree | 6b2e04b49f3ff8550f464992ca6ed6500d17be80 /test/py/conftest.py | |
parent | 9ae25b9ac9e295ecb50268fd926b220ad8f28e3b (diff) |
vpl: Support running vpl tests
Add support for these to the pytest system.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/py/conftest.py')
-rw-r--r-- | test/py/conftest.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/py/conftest.py b/test/py/conftest.py index 16e445cd8e..2ba34479e0 100644 --- a/test/py/conftest.py +++ b/test/py/conftest.py @@ -322,8 +322,11 @@ def pytest_generate_tests(metafunc): if fn == 'ut_subtest': generate_ut_subtest(metafunc, fn, '/u-boot.sym') continue - if fn == 'ut_spl_subtest': - generate_ut_subtest(metafunc, fn, '/spl/u-boot-spl.sym') + m_subtest = re.match('ut_(.)pl_subtest', fn) + if m_subtest: + spl_name = m_subtest.group(1) + generate_ut_subtest( + metafunc, fn, f'/{spl_name}pl/u-boot-{spl_name}pl.sym') continue generate_config(metafunc, fn) |