Skip to content

Commit

Permalink
Merge pull request #3127 from Autodesk/donnels/tests_should_write_to_…
Browse files Browse the repository at this point in the history
…temp

Fix tests to write output in testing temp dir (not source tree).
  • Loading branch information
seando-adsk authored May 31, 2023
2 parents ee64371 + dc1a69e commit e10df1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions plugin/al/plugin/AL_USDMayaTestPlugin/py/testProxyShape.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def tearDownClass(cls):

def setUp(self):
unittest.TestCase.setUp(self)
self.workingDir = os.path.abspath(type(self).__name__)
os.mkdir(self.workingDir)
self.workingDir = os.environ.get('MAYA_APP_DIR')
cmds.file(new=True, save=False, force=True)
cmds.loadPlugin("AL_USDMayaPlugin", quiet=True)
self.assertTrue(cmds.pluginInfo("AL_USDMayaPlugin", query=True, loaded=True))
Expand Down
5 changes: 3 additions & 2 deletions test/lib/usd/translators/testUsdImportEulerFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ class testUsdImportEulerFilter(unittest.TestCase):
def setUpClass(cls):
inputPath = fixturesUtils.setUpClass(__file__)

cls.skel_file = os.path.join(inputPath, "UsdImportEulerFilterTest", "UsdImportEulerFilterTest_skel.usda")
tempTestPath = os.environ.get('MAYA_APP_DIR')
cls.skel_file = os.path.join(tempTestPath, "UsdImportEulerFilterTest", "UsdImportEulerFilterTest_skel.usda")

build_skel_scene(cls.skel_file)

cls.xform_file = os.path.join(inputPath, "UsdImportEulerFilterTest", "UsdImportEulerFilterTest_xform.usda")
cls.xform_file = os.path.join(tempTestPath, "UsdImportEulerFilterTest", "UsdImportEulerFilterTest_xform.usda")
build_xform_scene(cls.xform_file)

def test_skel_rotation_fail(self):
Expand Down

0 comments on commit e10df1a

Please sign in to comment.