[PATCH] tests: Fix exception when cleaning up skipped test
Simon Glass
sjg at chromium.org
Tue Jul 4 04:40:24 CEST 2023
On Mon, 3 Jul 2023 at 14:35, Joshua Watt <jpewhacker at gmail.com> wrote:
>
> If test_cat and test_xxd cannot create the required file, the test will
> be skipped, but this would result in an exception being raised in the
> finally block because the file didn't exist to be cleaned up. This
> caused the test to be marked as failed instead of skipped.
>
> Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>
> ---
> test/py/tests/test_cat/conftest.py | 3 ++-
> test/py/tests/test_xxd/conftest.py | 3 ++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list