Using temp directory for usd exporter test
This commit is contained in:
@@ -18,6 +18,7 @@ import os
|
|||||||
|
|
||||||
from absl.testing import absltest
|
from absl.testing import absltest
|
||||||
from etils import epath
|
from etils import epath
|
||||||
|
import tempfile
|
||||||
import mujoco
|
import mujoco
|
||||||
from mujoco.usd import exporter as exporter_module # pylint: disable=g-import-not-at-top
|
from mujoco.usd import exporter as exporter_module # pylint: disable=g-import-not-at-top
|
||||||
|
|
||||||
@@ -25,7 +26,7 @@ class ExporterTest(absltest.TestCase):
|
|||||||
|
|
||||||
def test_usd_export(self):
|
def test_usd_export(self):
|
||||||
|
|
||||||
output_dir_root = os.getenv("TEST_UNDECLARED_OUTPUTS_DIR")
|
output_dir_root = os.getenv('TEST_UNDECLARED_OUTPUTS_DIR', tempfile.gettempdir())
|
||||||
output_dir_name = "usd_test"
|
output_dir_name = "usd_test"
|
||||||
xml = """
|
xml = """
|
||||||
<mujoco>
|
<mujoco>
|
||||||
|
|||||||
Reference in New Issue
Block a user