re-add WinGenericLauncher for custom .exe launchers instead of the hard-coded ones (i.e. able to use 'MaterialEditor.exe' instead of 'Editor.exe' for a WinLauncher class)
This commit is contained in:
@@ -281,6 +281,21 @@ def _dedicated_launcher(request, workspace, launcher_platform, level=""):
|
||||
|
||||
return launcher
|
||||
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
def generic_launcher(workspace, request, crash_log_watchdog):
|
||||
# type: (...) -> ly_test_tools.launchers.platforms.base.Launcher
|
||||
return _generic_launcher(
|
||||
workspace=workspace,
|
||||
launcher_platform=get_fixture_argument(request, 'launcher_platform', HOST_OS_PLATFORM),
|
||||
exe_file_name=get_fixture_argument(request, 'exe_file_name', ''))
|
||||
|
||||
|
||||
def _generic_launcher(workspace, launcher_platform, exe_file_name):
|
||||
"""Separate implementation to call directly during unit tests"""
|
||||
return ly_test_tools.launchers.launcher_helper.create_generic_launcher(workspace, launcher_platform, exe_file_name)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def automatic_process_killer(request):
|
||||
# type: (_pytest.fixtures.SubRequest) -> ly_process_killer
|
||||
|
||||
Reference in New Issue
Block a user