Skip to content
Snippets Groups Projects
Verified Commit 52a607a7 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3487816 by catch, berdir, smustgrave, quietone: Ensure tests don't run twice

(cherry picked from commit 1b5e4160)
parent bb51f1da
No related branches found
No related tags found
5 merge requests!12745Fixed: Path alias language doesn't changes on changing of node language,!12537Add ViewsConfigUpdater deprecation support for default_argument_skip_url,!11958Issue #3490507 by alexpott, smustgrave: Fix bogus mocking in...,!11769Issue #3517987: Add option to contextual filters to encode slashes in query parameter.,!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4
Pipeline #350408 passed with warnings
Pipeline: drupal

#350449

    Pipeline: drupal

    #350437

      Pipeline: drupal

      #350428

        +1
        ......@@ -929,16 +929,16 @@ function simpletest_script_get_test_list() {
        foreach ($groups as $group => $tests) {
        $not_slow_tests = array_merge($not_slow_tests, array_keys($tests));
        }
        // Filter slow tests out of the not slow tests since they may appear in more
        // than one group.
        $not_slow_tests = array_diff($not_slow_tests, $slow_tests);
        // Filter slow tests out of the not slow tests and ensure a unique list
        // since tests may appear in more than one group.
        $not_slow_tests = array_unique(array_diff($not_slow_tests, $slow_tests));
        // If the tests are not being run in parallel, then ensure slow tests run
        // all together first.
        if ((int) $args['ci-parallel-node-total'] <= 1 ) {
        sort_tests_by_type_and_methods($slow_tests);
        sort_tests_by_type_and_methods($not_slow_tests);
        $test_list = array_unique(array_merge($slow_tests, $not_slow_tests));
        $test_list = array_merge($slow_tests, $not_slow_tests);
        }
        else {
        // Sort all tests by the number of public methods on the test class.
        ......@@ -959,7 +959,7 @@ function simpletest_script_get_test_list() {
        // And the same for the rest of the tests.
        $binned_other_tests = place_tests_into_bins($not_slow_tests, $bin_count);
        $other_tests_for_job = $binned_other_tests[$args['ci-parallel-node-index'] - 1];
        $test_list = array_unique(array_merge($slow_tests_for_job, $other_tests_for_job));
        $test_list = array_merge($slow_tests_for_job, $other_tests_for_job);
        }
        }
        else {
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment