Make WordPress Core

Changeset 63916


Ignore:
Timestamp:
09/24/2026 03:58:03 PM (3 hours ago)
Author:
lancewillett
Message:

Build/Test Tools: Allow dotted groups in PHPUnit v1 and v2.

Allow periods in requested PHPUnit group names so callers can select groups such as functions.php. Continue rejecting shell syntax that legacy Docker wrappers could interpret as commands.

Follow-up to [63897].

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/13711

Props lucatume.
See #66149.

Location:
trunk/.github/workflows
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/reusable-phpunit-tests-v1.yml

    r63897 r63916  
    126126          TEST_GROUPS: ${{ inputs.phpunit-test-groups }}
    127127        run: |
    128           if [[ ! "$TEST_GROUPS" =~ ^[A-Za-z0-9_-]+(,[A-Za-z0-9_-]+)*$ ]]; then
     128          if [[ ! "$TEST_GROUPS" =~ ^[A-Za-z0-9_.-]+(,[A-Za-z0-9_.-]+)*$ ]]; then
    129129            echo 'phpunit-test-groups must be a comma-separated list of group names.' >&2
    130130            exit 1
  • trunk/.github/workflows/reusable-phpunit-tests-v2.yml

    r63897 r63916  
    128128          TEST_GROUPS: ${{ inputs.phpunit-test-groups }}
    129129        run: |
    130           if [[ ! "$TEST_GROUPS" =~ ^[A-Za-z0-9_-]+(,[A-Za-z0-9_-]+)*$ ]]; then
     130          if [[ ! "$TEST_GROUPS" =~ ^[A-Za-z0-9_.-]+(,[A-Za-z0-9_.-]+)*$ ]]; then
    131131            echo 'phpunit-test-groups must be a comma-separated list of group names.' >&2
    132132            exit 1
Note: See TracChangeset for help on using the changeset viewer.