OP-3426 - update CleanUp to skip for automatic tests

Tests work with temp folders, so CleanUp might delete some required files (as metadata.json). Let automatic process cleanup itself.
This commit is contained in:
Petr Kalis 2022-10-19 16:37:54 +02:00
parent d6bbc95786
commit f47403403b

View file

@ -44,6 +44,9 @@ class CleanUp(pyblish.api.InstancePlugin):
def process(self, instance):
"""Plugin entry point."""
if os.environ.get("IS_TEST"):
# let automatic test process clean up temporary data
return
# Get the errored instances
failed = []
for result in instance.context.data["results"]: