From 8112da03585d26cacfcffd960b5763e0285c14ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 9 Dec 2020 01:20:10 +0100 Subject: [PATCH] umockdev-tests: Still raise an error when storing the exception output Otherwise we won't ever fail --- tests/umockdev-test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/umockdev-test.py b/tests/umockdev-test.py index dc75995..a25f995 100755 --- a/tests/umockdev-test.py +++ b/tests/umockdev-test.py @@ -87,10 +87,11 @@ try: if os.path.exists(os.path.join(ddir, "custom.ioctl")): custom() -except: +except Exception as e: # Store created output files for inspection (in the build directory) outdir = os.path.join('errors', os.path.basename(ddir)) shutil.copytree(tmpdir, outdir) + raise e finally: shutil.rmtree(tmpdir)