Fix AzTestRunner smoke test on Linux

Signed-off-by: sweeneys <sweeneys@amazon.com>
This commit is contained in:
sweeneys
2021-10-25 18:50:34 -07:00
parent c00b99f2d5
commit fa6b1d1d65
@@ -13,12 +13,20 @@ import os
import pytest
import subprocess
import ly_test_tools
@pytest.mark.SUITE_smoke
class TestCLIToolAzTestRunnerWorks(object):
def test_CLITool_AzTestRunner_Works(self, build_directory):
def test_CLITool_AzTestRunner_ListSelfTests(self, build_directory):
file_path = os.path.join(build_directory, "AzTestRunner")
help_message = "OKAY Symbol found: AzRunUnitTests"
if ly_test_tools.WINDOWS:
target_lib = "AzTestRunner.Tests"
else:
target_lib = "libAzTestRunner.Tests"
# Launch AzTestRunner
output = subprocess.run(
[file_path, "AzTestRunner.Tests", "AzRunUnitTests", "--gtest_list_tests"], capture_output=True, timeout=10