mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
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:
parent
d6bbc95786
commit
f47403403b
1 changed files with 3 additions and 0 deletions
|
|
@ -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"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue