Issue #3251817 by alexpott, jonathan1055, nicxvan, longwave: Make run-tests.sh select all the required tests when testgroups: has more than one value

(cherry picked from commit c7e78f42b9)
merge-requests/2710/merge
catch 2022-10-24 17:16:09 +01:00
parent 41f6e91db1
commit 45461e7ac6
1 changed files with 4 additions and 3 deletions

View File

@ -984,11 +984,12 @@ function simpletest_script_get_test_list() {
simpletest_script_print_alternatives($first_group, $all_groups);
exit(SIMPLETEST_SCRIPT_EXIT_FAILURE);
}
// Ensure our list of tests contains only one entry for each test.
// Merge the tests from the groups together.
foreach ($args['test_names'] as $group_name) {
$test_list = array_merge($test_list, array_flip(array_keys($groups[$group_name])));
$test_list = array_merge($test_list, array_keys($groups[$group_name]));
}
$test_list = array_flip($test_list);
// Ensure our list of tests contains only one entry for each test.
$test_list = array_unique($test_list);
}
}