]> git.baikalelectronics.ru Git - uboot.git/commit
tests: Fix exception when cleaning up skipped test
authorJoshua Watt <jpewhacker@gmail.com>
Mon, 3 Jul 2023 13:35:09 +0000 (08:35 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 17 Jul 2023 19:39:55 +0000 (15:39 -0400)
commitc1219766d2f4463ad8921629a2df10975a7337a6
tree202341498cd6d9d04fcef6ee3729d1d54e9c344c
parent36dac7b2f002659687435d366147703c23f03011
tests: Fix exception when cleaning up skipped test

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@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/py/tests/test_cat/conftest.py
test/py/tests/test_xxd/conftest.py