diff options
author | Simon Glass <sjg@chromium.org> | 2025-01-20 14:25:56 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-01-24 14:34:41 -0600 |
commit | 81c5434f499e00a2143fa585e030af1821e3285f (patch) | |
tree | 09cf82d54e3f38857f647ca7965d781a473ee778 /test/py | |
parent | 0af17462b96953de3be877dda0d84734503596fb (diff) |
test: Drop the info test from the list
The 'info' test is not a real test. With the new suite array we can drop
this and the associated special-case code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/py')
-rw-r--r-- | test/py/tests/test_suite.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/py/tests/test_suite.py b/test/py/tests/test_suite.py index 706c9d9673f..20cdf022536 100644 --- a/test/py/tests/test_suite.py +++ b/test/py/tests/test_suite.py @@ -8,7 +8,7 @@ import re EXPECTED_SUITES = [ 'addrmap', 'bdinfo', 'bloblist', 'bootm', 'bootstd', 'cmd', 'common', 'dm', 'env', 'exit', - 'fdt', 'font', 'hush', 'info', 'lib', + 'fdt', 'font', 'hush', 'lib', 'loadm', 'log', 'mbr', 'measurement', 'mem', 'overlay', 'pci_mps', 'setexpr', 'upl', ] @@ -153,9 +153,8 @@ def test_suite(u_boot_console): cons.log.info(f'missing {missing}') cons.log.info(f'extra {extra}') - # Make sure we got a test count for each suite (ignore 'info' since it isn't - # a real suite - assert suites - exp_test_count.keys() == {'info'} + # Make sure we got a test count for each suite + assert suites - exp_test_count.keys() == set() # Run 'ut info' and compare with the log results with cons.log.section('Check suite test-counts'): @@ -174,10 +173,8 @@ def test_suite(u_boot_console): cons.log.info(str(exp_test_count)) for suite in EXPECTED_SUITES: - # 'info' is not really a suite, just a subcommand of 'ut' - if suite != 'info': - assert test_count[suite] in ['?', str(exp_test_count[suite])],\ - f'suite {suite} expected {exp_test_count[suite]}' + assert test_count[suite] in ['?', str(exp_test_count[suite])], \ + f'suite {suite} expected {exp_test_count[suite]}' assert suite_count == len(EXPECTED_SUITES) assert total_test_count == len(all_tests) |