Skip to content

Commit

Permalink
update based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
lilike-adsk committed Feb 5, 2024
1 parent 0969b02 commit 61fec76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/lib/mayaUsd/render/mayaToHydra/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ set(INTERACTIVE_TEST_SCRIPT_FILES
testMayaLights.py
testFlowViewportAPI.py
testStageVariants.py
# Skip until MtoA plugin can be loaded.
# testArnoldLights.py
testArnoldLights.py
cpp/testColorPreferences.py
cpp/testCppFramework.py
cpp/testMayaSceneFlattening.py
Expand Down
2 changes: 1 addition & 1 deletion test/lib/mayaUsd/render/mayaToHydra/testArnoldLights.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def verifyLightingModes(self, shadowOn):
#self.assertSnapshotClose("noLight" + imageSuffix + ".png", self.imageDiffFailThreshold, self.imageDiffFailPercent)

#Test arnold lights (e.g., aiSkyDomeLight,etc.) with a maya native sphere and usd sphere.
@unittest.skipUnless(mtohUtils.checkForMayaUsdPlugin(), "Requires Maya USD Plugin.")
@unittest.skipUnless(mtohUtils.checkForMayaUsdPlugin() and mtohUtils.checkForMtoAPlugin(), "Requires Maya USD and MtoA Plugins.")
def test_ArnoldLights(self):
cmds.file(new=True, force=True)

Expand Down
3 changes: 3 additions & 0 deletions test/testUtils/mtohUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def checkForPlugin(pluginName: str):
def checkForMayaUsdPlugin():
return checkForPlugin('mayaUsdPlugin')

def checkForMtoAPlugin():
return checkForPlugin('mtoa')

class MayaHydraBaseTestCase(unittest.TestCase):
'''Base class for mayaHydra unit tests without image comparison.'''

Expand Down

0 comments on commit 61fec76

Please sign in to comment.