Merge pull request #7446 from AMZN-scspaldi/scspaldi_launcher_sanity_tests

Added server launcher sanity test.
monroegm-disable-blank-issue-2
Sean Sweeney 4 years ago committed by GitHub
commit 25016112ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save