mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
umockdev-tests: Still raise an error when storing the exception output
Otherwise we won't ever fail
This commit is contained in:
committed by
Benjamin Berg
parent
f2ea3e784e
commit
8112da0358
@@ -87,10 +87,11 @@ try:
|
|||||||
if os.path.exists(os.path.join(ddir, "custom.ioctl")):
|
if os.path.exists(os.path.join(ddir, "custom.ioctl")):
|
||||||
custom()
|
custom()
|
||||||
|
|
||||||
except:
|
except Exception as e:
|
||||||
# Store created output files for inspection (in the build directory)
|
# Store created output files for inspection (in the build directory)
|
||||||
outdir = os.path.join('errors', os.path.basename(ddir))
|
outdir = os.path.join('errors', os.path.basename(ddir))
|
||||||
shutil.copytree(tmpdir, outdir)
|
shutil.copytree(tmpdir, outdir)
|
||||||
|
raise e
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
shutil.rmtree(tmpdir)
|
shutil.rmtree(tmpdir)
|
||||||
|
|||||||
Reference in New Issue
Block a user