test/py: drain console log at the end of any failed test
[platform/kernel/u-boot.git] / test / py / conftest.py
index 38aa3f9..c1f19ce 100644 (file)
@@ -386,6 +386,7 @@ def pytest_runtest_protocol(item, nextitem):
                 skipped = report
 
     if failed:
+        console.drain_console()
         tests_failed.add(item.name)
     elif skipped:
         tests_skipped.add(item.name)