Skip to content

Commit

Permalink
HYDRA-837 : Adjust thresholds for very slight OSX differences
Browse files Browse the repository at this point in the history
  • Loading branch information
debloip-adsk committed Mar 27, 2024
1 parent 1aa32d6 commit f1643cb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions test/lib/mayaUsd/render/mayaToHydra/testMayaDisplayModes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class TestMayaDisplayModes(mtohUtils.MayaHydraBaseTestCase): #Subclassing mtohUt
# MayaHydraBaseTestCase.setUpClass requirement.
_file = __file__

IMAGE_DIFF_FAIL_THRESHOLD = 0.01
IMAGE_DIFF_FAIL_PERCENT = 0.2
IMAGE_DIFF_FAIL_THRESHOLD = 0.05
IMAGE_DIFF_FAIL_PERCENT = 1.5

def test_MayaDisplayModes(self):

Expand Down
4 changes: 2 additions & 2 deletions test/lib/mayaUsd/render/mayaToHydra/testMayaShadingModes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class TestMayaShadingModes(mtohUtils.MayaHydraBaseTestCase): #Subclassing mtohUt
# MayaHydraBaseTestCase.setUpClass requirement.
_file = __file__

IMAGE_DIFF_FAIL_THRESHOLD = 0.01
IMAGE_DIFF_FAIL_PERCENT = 0.3
IMAGE_DIFF_FAIL_THRESHOLD = 0.05
IMAGE_DIFF_FAIL_PERCENT = 1.5

def test_MayaShadingModes(self):

Expand Down
4 changes: 2 additions & 2 deletions test/lib/mayaUsd/render/mayaToHydra/testMayaUsdAPIUsage.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class TestMayaUsdAPI(mtohUtils.MayaHydraBaseTestCase): #Subclassing mtohUtils.Ma
# MayaHydraBaseTestCase.setUpClass requirement.
_file = __file__

IMAGE_DIFF_FAIL_THRESHOLD = 0.01
IMAGE_DIFF_FAIL_PERCENT = 0.2
IMAGE_DIFF_FAIL_THRESHOLD = 0.05
IMAGE_DIFF_FAIL_PERCENT = 1

def test_MovingUsdStage(self):
# Load a maya scene with a sphere prim in a UsdStage and a directional light, with HdStorm already being the viewport renderer.
Expand Down
4 changes: 2 additions & 2 deletions test/lib/mayaUsd/render/mayaToHydra/testPolygonPrimitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class TestPolygonPrimitives(mtohUtils.MayaHydraBaseTestCase):
# MayaHydraBaseTestCase.setUpClass requirement.
_file = __file__

IMAGE_DIFF_FAIL_THRESHOLD = 0.1
IMAGE_DIFF_FAIL_PERCENT = 0.5
IMAGE_DIFF_FAIL_THRESHOLD = 0.05
IMAGE_DIFF_FAIL_PERCENT = 1.5

def compareSnapshot(self, referenceFilename, cameraDistance=15):
self.setBasicCam(cameraDistance)
Expand Down

0 comments on commit f1643cb

Please sign in to comment.