Merge pull request #4894 from pmatos/feature/improve-TestFiltering

Support configuration-specific known failures in asm_tests
This commit is contained in:
Ryan Houdek authored and GitHub committed 2025-09-19 11:52:21 -07:00
commit b3d88c043d
3 files changed
+11 -5

No files matched your search

+9 -5
View File
@@ -5,9 +5,9 @@ import os.path
from os import path
from shutil import which
# Args: <Known Failures file> <Known Failures Type File> <DisabledTestsFile> <DisabledTestsTypeFile> <DisabledTestsRunnerFile> <TestName> <Test Harness Executable> <Args>...
# Args: <Known Failures file> <Known Failures Type File> <DisabledTestsFile> <DisabledTestsTypeFile> <DisabledTestsRunnerFile> <TestName> <FullTestName> <Test Harness Executable> <Args>...
if (len(sys.argv) < 7):
if (len(sys.argv) < 8):
sys.exit()
known_failures = {}
@@ -19,8 +19,9 @@ disabled_tests_type_file = sys.argv[4]
disabled_tests_runner_file = sys.argv[5]
current_test = sys.argv[6]
runner = sys.argv[7]
args_start_index = 8
full_test_name = sys.argv[7]
runner = sys.argv[8]
args_start_index = 9
# Open the known failures file and add it to a dictionary
with open(known_failures_file) as kff:
@@ -63,7 +64,10 @@ Process = subprocess.Popen(RunnerArgs)
Process.wait()
ResultCode = Process.returncode
if (known_failures.get(current_test)):
# Check for known failures - try full test name first, then partial test name
is_known_failure = known_failures.get(full_test_name) or known_failures.get(current_test)
if (is_known_failure):
# If the test is on the known failures list
if (ResultCode):
# If we errored but are on the known failures list then "pass" the test
+1
View File
@@ -91,6 +91,7 @@ foreach(ASM_SRC ${ASM_SOURCES})
"${CMAKE_SOURCE_DIR}/unittests/32Bit_ASM/Disabled_Tests_${TEST_TYPE}"
"${CMAKE_SOURCE_DIR}/unittests/32Bit_ASM/Disabled_Tests_${CPU_CLASS}"
"Test_32Bit_${REL_TEST_ASM}"
"${TEST_NAME}"
${LAUNCH_PROGRAM}
"${OUTPUT_NAME}" "${OUTPUT_CONFIG_NAME}")
# This will cause the ASM tests to fail if it can't find the TestHarness or ASMN files
+1
View File
@@ -98,6 +98,7 @@ foreach(ASM_SRC ${ASM_SOURCES})
"${CMAKE_SOURCE_DIR}/unittests/ASM/Disabled_Tests_${TEST_TYPE}"
"${CMAKE_SOURCE_DIR}/unittests/ASM/Disabled_Tests_${CPU_CLASS}"
"Test_${REL_TEST_ASM}"
"${TEST_NAME}"
${LAUNCH_PROGRAM}
"${OUTPUT_NAME}" "${OUTPUT_CONFIG_NAME}")
# This will cause the ASM tests to fail if it can't find the TestHarness or ASMN files