Specifically this fixes the issue where if a pytest test suite fails
during collection then the errors are hidden.
(From OE-Core rev: db0e82135ce73d0d6d55b2c2ac17a3fdec8aca99)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>