umockdev-tests: Don't fail when trying to save other errors

This commit is contained in:
Marco Trevisan (Treviño) 2020-12-09 01:21:49 +01:00 committed by Benjamin Berg
parent 8112da0358
commit 6ca8441df9

2
tests/umockdev-test.py Executable file → Normal file
View file

@ -90,7 +90,7 @@ try:
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)
shutil.copytree(tmpdir, outdir, dirs_exist_ok=True)
raise e
finally: