Skip to content

Commit

Permalink
Skip extraction of active view for automatic tests
Browse files Browse the repository at this point in the history
It seems that Maya UI is not completely visible or shutting down, `view.readColorBuffer` causes RuntimeError: (kFailure): Unexpected Internal Failure aas view is not visible.
  • Loading branch information
kalisp committed Sep 26, 2024
1 parent ceb4de1 commit 2ab2ef6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import tempfile

from ayon_core.lib import is_in_tests

import maya.api.OpenMaya as om
import maya.api.OpenMayaUI as omui
import pyblish.api
Expand All @@ -20,7 +22,7 @@ class ExtractActiveViewThumbnail(plugin.MayaInstancePlugin):
families = ["workfile"]

def process(self, instance):
if IS_HEADLESS:
if IS_HEADLESS or is_in_tests():
self.log.debug(
"Skip extraction of active view thumbnail, due to being in"
"headless mode."
Expand Down

0 comments on commit 2ab2ef6

Please sign in to comment.