NvCloth automated tests use default renderer to be more stable and complete (#1850)

Signed-off-by: moraaar <moraaar@amazon.com>
This commit is contained in:
Aaron Ruiz Mora
2021-07-05 16:52:24 +01:00
committed by GitHub
parent 1dfe65a3ef
commit 9d5a9ff925
5 changed files with 12 additions and 18 deletions
@@ -51,7 +51,7 @@ class TestAutomationBase:
cls._kill_ly_processes()
def _run_test(self, request, workspace, editor, testcase_module, extra_cmdline_args=[]):
def _run_test(self, request, workspace, editor, testcase_module, extra_cmdline_args=[], use_null_renderer=True):
test_starttime = time.time()
self.logger = logging.getLogger(__name__)
errors = []
@@ -89,7 +89,10 @@ class TestAutomationBase:
editor_starttime = time.time()
self.logger.debug("Running automated test")
testcase_module_filepath = self._get_testcase_module_filepath(testcase_module)
pycmd = ["--runpythontest", testcase_module_filepath, "-BatchMode", "-autotest_mode", "-rhi=null"] + extra_cmdline_args
pycmd = ["--runpythontest", testcase_module_filepath, "-BatchMode", "-autotest_mode"]
if use_null_renderer:
pycmd += ["-rhi=null"]
pycmd += extra_cmdline_args
editor.args.extend(pycmd) # args are added to the WinLauncher start command
editor.start(backupFiles = False, launch_ap = False)
try: