Skip to contentSkip to conversation

Python tests with pytest 6

DISCUSSION Heinrich Schuchardt 1 participant 1 message Jan 30, 2021

lore
Share & tools
lore
#0 lore raw

Hello Stephen,

with pytest 6 U-Boot's Python test output is messed up. The module names are not printed anymore. This seems not to be a problem of pytest. When running text book examples the module names are printed. So it must be in our code.

Looking multiplexed_log.py it seems that you have highly customized the logging.

Maybe you want to have look at it.

Best regards

Heinrich

make tests
./test/run
sandbox: +make O=/build-sandbox -s sandbox_defconfig
+make O=build-sandbox -s -j8 ================================================ test session starts
=================================================
platform linux -- Python 3.9.1+, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
rootdir: /home/zfsdt/workspace/u-boot-build/denx/test/py, configfile:
pytest.ini
collected 792 items

.....s.....sss.ssssss................ssssssssssssssssssssssssssss.........s.............................................................................sssss.ssssss.............s.ssss....ss...........s.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ss..s.....................F............F................................................................................

====================================================== FAILURES
======================================================
____________________________________________ TestFsBasic.test_fs1[fat16]
_____________________________________________