1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 13:09:42 +00:00

Keep generated files on integration tests failure

This commit is contained in:
elsid 2024-06-25 00:48:43 +02:00
parent 9006a8fad0
commit eb6dc6e6b0
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -129,6 +129,7 @@ for entry in tests_dir.glob("test_*"):
if entry.is_dir():
if not runTest(entry.name):
status = -1
shutil.rmtree(config_dir, ignore_errors=True)
shutil.rmtree(userdata_dir, ignore_errors=True)
if status == 0:
shutil.rmtree(config_dir, ignore_errors=True)
shutil.rmtree(userdata_dir, ignore_errors=True)
exit(status)