From b466788cc43da7181bba62e2450cd517ca8d8960 Mon Sep 17 00:00:00 2001 From: jckand-amzn Date: Tue, 24 Aug 2021 16:10:36 -0500 Subject: [PATCH] Updating editor_test.py to allow for per-test null_renderer overrides Signed-off-by: jckand-amzn --- Tools/LyTestTools/ly_test_tools/o3de/editor_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/LyTestTools/ly_test_tools/o3de/editor_test.py b/Tools/LyTestTools/ly_test_tools/o3de/editor_test.py index 0f456cee1a..4e15f32b37 100644 --- a/Tools/LyTestTools/ly_test_tools/o3de/editor_test.py +++ b/Tools/LyTestTools/ly_test_tools/o3de/editor_test.py @@ -62,8 +62,11 @@ class EditorTestBase(ABC): # Test that will be run alone in one editor class EditorSingleTest(EditorTestBase): + #- Configurable params -# # Extra cmdline arguments to supply to the editor for the test extra_cmdline_args = [] + # Whether to use null renderer, this will override use_null_renderer for the Suite if not None + use_null_renderer = None # Custom setup function, will run before the test @staticmethod @@ -584,7 +587,7 @@ class EditorTestSuite(): test_spec : EditorTestBase, cmdline_args : List[str] = []): test_cmdline_args = self.global_extra_cmdline_args + cmdline_args - if self.use_null_renderer: + if test_spec.use_null_renderer or (test_spec.use_null_renderer is None and self.use_null_renderer): test_cmdline_args += ["-rhi=null"] # Cycle any old crash report in case it wasn't cycled properly