Explorar o código

Merge pull request #1377 from aws-lumberyard-dev/test_tools_example_test

Fixing test tools example test
evanchia-ly-sdets %!s(int64=4) %!d(string=hai) anos
pai
achega
989178d285

+ 14 - 0
Tools/LyTestTools/tests/CMakeLists.txt

@@ -56,4 +56,18 @@ if(PAL_TRAIT_BUILD_HOST_TOOLS AND PAL_TRAIT_BUILD_TESTS_SUPPORTED AND AutomatedT
             AutomatedTesting.Assets
             AutomatedTesting.Assets
             COMPONENT TestTools
             COMPONENT TestTools
     )
     )
+
+    # Example tests.
+    ly_add_pytest(
+        NAME LyTestTools_ExampleTests_periodic_no_gpu
+        PATH ${CMAKE_CURRENT_LIST_DIR}/example/test_system_example.py
+        TEST_SERIAL
+        TEST_SUITE periodic
+        RUNTIME_DEPENDENCIES
+            Legacy::Editor
+            AssetProcessor
+            AutomatedTesting.GameLauncher
+            AutomatedTesting.Assets
+            COMPONENT TestTools
+    )
 endif()
 endif()

+ 1 - 3
Tools/LyTestTools/tests/example/test_system_example.py

@@ -80,9 +80,7 @@ class TestSystemExample(object):
         with launcher.start():
         with launcher.start():
             remote_console.start()
             remote_console.start()
             launcher_load = remote_console.expect_log_line(
             launcher_load = remote_console.expect_log_line(
-                match_string='========================== '
-                             'Finished loading textures '
-                             '============================',
+                match_string='Level system is loading "simple_jacklocomotion"',
                 timeout=load_wait)
                 timeout=load_wait)
 
 
         # Assert loading was successful using remote console logs:
         # Assert loading was successful using remote console logs: