@@ -495,10 +495,6 @@ function copy_test_native_bin_to_test_root {
495
495
if [ -z " $testNativeBinDir " ]; then
496
496
exit_with_error " $errorSource " " --testNativeBinDir is required."
497
497
fi
498
- testNativeBinDir=$testNativeBinDir /src
499
- if [ ! -d " $testNativeBinDir " ]; then
500
- exit_with_error " $errorSource " " Directory specified by --testNativeBinDir does not exist: $testNativeBinDir "
501
- fi
502
498
503
499
# Copy native test components from the native test build into the respective test directory in the test root directory
504
500
find " $testNativeBinDir " -type f -iname " *.$libExtension " |
@@ -511,6 +507,7 @@ function copy_test_native_bin_to_test_root {
511
507
# Variables for unsupported and failing tests
512
508
declare -a unsupportedTests
513
509
declare -a failingTests
510
+ declare -a excludedTests
514
511
declare -a playlistTests
515
512
(( runFailingTestsOnly = 0 ))
516
513
@@ -545,6 +542,15 @@ function load_failing_tests {
545
542
failingTests+=($( read_array " $( dirname " ${BASH_SOURCE[0]} " ) /testsFailing.$ARCH .txt" ) )
546
543
}
547
544
545
+ function load_excluded_tests {
546
+ # Read the exclusion file and populate the excludedTests array
547
+ while IFS=, read -r dllPath reasonMessage; do
548
+ # Extract the directory path from the dllPath and add it to the excludedTests array
549
+ dirPath=$( dirname " $dllPath " )
550
+ excludedTests+=(" $dirPath " )
551
+ done < " ${CORE_ROOT} /TestExclusionList.txt"
552
+ }
553
+
548
554
function load_playlist_tests {
549
555
# Load the list of tests that are enabled as a part of this test playlist.
550
556
playlistTests=($( read_array " ${playlistFile} " ) )
@@ -568,6 +574,16 @@ function is_failing_test {
568
574
return 1
569
575
}
570
576
577
+ function is_excluded_test {
578
+ for excludedTest in " ${excludedTests[@]} " ; do
579
+ if [[ " $1 " == " $excludedTest " * ]]; then
580
+ return 0
581
+ fi
582
+ done
583
+
584
+ return 1
585
+ }
586
+
571
587
function is_playlist_test {
572
588
for playlistTest in " ${playlistTests[@]} " ; do
573
589
if [[ " $1 " == " $playlistTest " ]]; then
@@ -671,8 +687,6 @@ function print_info_from_core_file {
671
687
fi
672
688
}
673
689
674
-
675
-
676
690
function inspect_and_delete_core_files {
677
691
# This function prints some basic information from core files in the current
678
692
# directory and deletes them immediately.
@@ -903,6 +917,8 @@ function start_test {
903
917
skip_unsupported_test " $scriptFilePath " " $outputFilePath " &
904
918
elif (( runFailingTestsOnly == 0 )) && is_failing_test " $scriptFilePath " ; then
905
919
skip_failing_test " $scriptFilePath " " $outputFilePath " &
920
+ elif is_excluded_test " $scriptFilePath " ; then
921
+ skip_unsupported_test " $scriptFilePath " " $outputFilePath " &
906
922
else
907
923
run_test " $scriptFilePath " " $outputFilePath " &
908
924
fi
@@ -1277,6 +1293,7 @@ then
1277
1293
else
1278
1294
load_unsupported_tests
1279
1295
load_failing_tests
1296
+ load_excluded_tests
1280
1297
fi
1281
1298
1282
1299
scriptPath=$( dirname $0 )
0 commit comments