]> git.baikalelectronics.ru Git - uboot.git/commit
test/py: ignore console read exceptions after test failure
authorStephen Warren <swarren@nvidia.com>
Thu, 20 Sep 2018 22:55:03 +0000 (16:55 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 6 Oct 2018 13:04:18 +0000 (09:04 -0400)
commit20a7d6e886b5c7b228abade82e78ebc0e4f7fe29
treeb08d971e78e810bbfb14d12ce0d9ec1dde398f2e
parent95fed6c1fcc314dc69d109888b68daaaaa8c086b
test/py: ignore console read exceptions after test failure

After a test has failed, test/py drains the U-Boot console log to ensure
that any relevant output is captured. At this point, we don't care about
detecting any additional errors, since the test is already known to have
failed, and U-Boot will be restarted. To ensure that the test cleanup code
is not interrupted, and can correctly terminate the log sections for the
failed test, ignore any exception that occurs while reading the U-Boot
console output during this limited period of time.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
test/py/u_boot_console_base.py