slachiewicz commented on PR #3634:
URL: https://github.com/apache/maven-surefire/pull/3634#issuecomment-7272023673
The old filter only worked on Windows because maven-shared-utils had already
upper-cased the inherited names. I replaced that with a plain copy of
`System.getenv()`, so the case-sensitive `removeAll` stopped matching `Path`.
Now #3634 covers it.
The tests that existed before #3575 did not pin any of this. The only checks
on exclusions, the `doesNotContain("PATH=")` assertions in
`ForkConfigurationTest`, were already wrong: they compared whole `NAME=value`
entries, so they passed whether or not `PATH` was removed. There was no test
for a configured `PATH` replacing an inherited `Path` on Windows, and none for
`PWD` in the fork. So the switch to `ProcessBuilder` changed all three without
a single test failing.
CI was green on `windows-latest` (JDK 8 and 21) before the merge, which is
the only Windows I have. It passed because of the test gap above, not because
the behaviour was intact.
The same rule is tracked in the other places that drop the shell wrapper:
codehaus-plexus/plexus-utils#381 gives the process one variable per
case-insensitive name on Windows (codehaus-plexus/plexus-utils#353 is stacked
on it), and apache/maven#13895 lists it, together with `PWD`, as a requirement
for the Maven 4 process execution service.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]