Browse Source

Fix broken path for ASV periodic suite. (#181)

Signed-off-by: Cynthia Lin <[email protected]>
Cynthia Lin 4 years ago
parent
commit
869497783a

+ 2 - 2
Standalone/PythonTests/Automated/test_AtomSampleViewer_periodic_suite.py

@@ -30,7 +30,7 @@ class TestAutomationPeriodicSuite:
     def test_AutomatedPeriodicTestSuite(self, request, workspace, launcher_platform, rhi, atomsampleviewer_log_monitor):
         # Script call setup.
         test_script = '_AutomatedPeriodicTestSuite_.bv.lua'
-        test_script_path = os.path.join(workspace.paths.engine_root(), 'AtomSampleViewer', 'Scripts', test_script)
+        test_script_path = os.path.join(workspace.paths.project(), 'Scripts', test_script)
         if not os.path.exists(test_script_path):
             raise AtomSampleViewerException(f'Test script does not exist in path: {test_script_path}')
         cmd = os.path.join(workspace.paths.build_directory(),
@@ -55,7 +55,7 @@ class TestAutomationPeriodicSuite:
                 unexpected_lines=unexpected_lines, halt_on_unexpected=True, timeout=600)
         except ly_test_tools.log.log_monitor.LogMonitorException as e:
             expected_screenshots_path = os.path.join(
-                workspace.paths.engine_root(), "AtomSampleViewer", "Scripts", "ExpectedScreenshots")
+                workspace.paths.project(), "Scripts", "ExpectedScreenshots")
             test_screenshots_path = os.path.join(
                 workspace.paths.project(), "user", "Scripts", "Screenshots")
             raise AtomSampleViewerException(