diff --git a/Scripts/testharness_runner.py b/Scripts/testharness_runner.py index f9fa35cd3..007ef7a51 100644 --- a/Scripts/testharness_runner.py +++ b/Scripts/testharness_runner.py @@ -5,9 +5,9 @@ import os.path from os import path from shutil import which -# Args: ... +# 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 diff --git a/unittests/32Bit_ASM/CMakeLists.txt b/unittests/32Bit_ASM/CMakeLists.txt index a1cd4e664..462b319d4 100644 --- a/unittests/32Bit_ASM/CMakeLists.txt +++ b/unittests/32Bit_ASM/CMakeLists.txt @@ -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 diff --git a/unittests/ASM/CMakeLists.txt b/unittests/ASM/CMakeLists.txt index 20fe77524..ac0047647 100644 --- a/unittests/ASM/CMakeLists.txt +++ b/unittests/ASM/CMakeLists.txt @@ -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