|
|
|
|
@ -63,6 +63,27 @@ class TestAutomatedTestingProject(object):
|
|
|
|
|
# Clean up processes after the test is finished
|
|
|
|
|
process_utils.kill_processes_named(names=process_utils.LY_PROCESS_KILL_LIST, ignore_extensions=True)
|
|
|
|
|
|
|
|
|
|
def test_StartServerLauncher_Sanity(self, project):
|
|
|
|
|
# Kill processes that may interfere with the test
|
|
|
|
|
process_utils.kill_processes_named(names=process_utils.LY_PROCESS_KILL_LIST, ignore_extensions=True)
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
# Create the Workspace object, this locates the engine and project
|
|
|
|
|
workspace = helpers.create_builtin_workspace(project=project)
|
|
|
|
|
|
|
|
|
|
# Create the Launcher object and add args, such as `-rhi=Null` which disables GPU rendering and allows the
|
|
|
|
|
# test to run on nodes without a GPU
|
|
|
|
|
launcher = launcher_helper.create_dedicated_launcher(workspace)
|
|
|
|
|
launcher.args.extend(['-rhi=Null'])
|
|
|
|
|
|
|
|
|
|
# Call the game client executable
|
|
|
|
|
with launcher.start():
|
|
|
|
|
# Wait for the process to exist
|
|
|
|
|
waiter.wait_for(lambda: process_utils.process_exists(f"{project}.ServerLauncher.exe", ignore_extensions=True))
|
|
|
|
|
finally:
|
|
|
|
|
# Clean up processes after the test is finished
|
|
|
|
|
process_utils.kill_processes_named(names=process_utils.LY_PROCESS_KILL_LIST, ignore_extensions=True)
|
|
|
|
|
|
|
|
|
|
def test_StartEditor_Sanity(self, project):
|
|
|
|
|
"""
|
|
|
|
|
The `test_StartEditor_Sanity` test function is similar to the previous example with minor adjustments. A
|
|
|
|
|
|