Skip to content

Commit 3db2589

Browse files
Skip standardSurface image test if maya version is less than 2024
1 parent cec4cd0 commit 3db2589

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/lib/mayaUsd/render/vp2RenderDelegate/testVP2RenderDelegateDisplayColorsStandardSurface.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@
2929
import ufe
3030

3131
import os
32+
import unittest
3233

3334

3435
class testVP2RenderDelegateDisplayColorsStandardSurface(imageUtils.ImageDiffingTestCase):
3536
"""
36-
Tests imaging using the Viewport 2.0 render delegate when using per-instance
37-
inherited data on instances.
37+
Tests imaging using the Viewport 2.0 render delegate when the default
38+
material is standardSurface.
3839
"""
3940

4041
@classmethod
@@ -79,7 +80,11 @@ def _StartTest(self, testName):
7980
globalSelection.clear()
8081
self.assertSnapshotClose('%s_unselected.png' % self._testName)
8182

82-
def testPerInstanceInheritedData(self):
83+
@unittest.skipIf(
84+
int(cmds.about(apiVersion=True)) < 20240000,
85+
"Test scene with default standardSurface material is compatible with maya 2024 and up."
86+
)
87+
def testStandardSurfaceShaderFragment(self):
8388
self._StartTest('ColorTestStandardSurface')
8489

8590

0 commit comments

Comments
 (0)