umockdev-tests: Still raise an error when storing the exception output
Otherwise we won't ever fail
This commit is contained in:
parent
f2ea3e784e
commit
8112da0358
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue