]> git.ipfire.org Git - thirdparty/u-boot.git/commit
test: Let pytest indicate skipped C unit tests
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 23 Nov 2025 22:56:53 +0000 (23:56 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 5 Dec 2025 14:54:44 +0000 (08:54 -0600)
commitc448c933b9c2f55c6eff996fcd281c40e65d6eda
tree5aa93316b7e25a9547e8bb832a8ea2467947528d
parent9eeed950445aa1e5f637f2e350986a0c45b0317c
test: Let pytest indicate skipped C unit tests

We invoke the ut command in test_ut.py. Currently we only check for
failures. Instead we should also indicate if sub-tests were skipped.

With this change we will get output like the following for skipped tests:

test/py/tests/test_ut.py ..sssss......ss..............s.sssss.s.s...
================================ short test summary info ================================
SKIPPED [1] test/py/tests/test_ut.py:597: Test addrmap addrmap_test_basic has 1 skipped sub-test(s).
SKIPPED [1] test/py/tests/test_ut.py:597: Test bdinfo bdinfo_test_eth has 4 skipped sub-test(s).

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
test/py/tests/test_ut.py