This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch maven-4.0.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-4.0.x by this push:
     new 82349017bc Fix IT isolation for MNG-6256 IT (#11395) (#11396)
82349017bc is described below

commit 82349017bcfc4c61e9eb784dfd79b879d3d30c6e
Author: Tamas Cservenak <[email protected]>
AuthorDate: Wed Nov 5 18:21:33 2025 +0100

    Fix IT isolation for MNG-6256 IT (#11395) (#11396)
    
    This IT was still "escaping", as Verifier was created for directory below 
invocation (redirected with -f) option.
    
    Turned this IT into "manually managing" and added `.mvn` to it.
    
    Backport of a46b0c7e755e490e773a41ccedc565b4fc60efda
---
 .../maven/it/MavenITmng6256SpecialCharsAlternatePOMLocation.java      | 4 +++-
 .../mng-6256-special-chars-alternate-pom-location/.mvn/.gitkeep       | 0
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6256SpecialCharsAlternatePOMLocation.java
 
b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6256SpecialCharsAlternatePOMLocation.java
index 84e829df3f..4469569d73 100644
--- 
a/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6256SpecialCharsAlternatePOMLocation.java
+++ 
b/its/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng6256SpecialCharsAlternatePOMLocation.java
@@ -26,6 +26,8 @@
  * This is a test set for <a 
href="https://issues.apache.org/jira/browse/MNG-6256";>MNG-6256</a>: check that 
directories
  * passed via <code>-f/--file</code> containing special characters do not 
break the script. E.g
  * <code>-f "directoryWithClosing)Bracket/pom.xml"</code>.
+ *
+ * This IT manually manages {@code .mvn} directories, so instructs Verifier to 
NOT create any.
  */
 public class MavenITmng6256SpecialCharsAlternatePOMLocation extends 
AbstractMavenIntegrationTestCase {
     public MavenITmng6256SpecialCharsAlternatePOMLocation() {
@@ -68,7 +70,7 @@ private void runCoreExtensionWithOption(String option, String 
subDir) throws Exc
         File testDir = new File(resourceDir, "../mng-6256-" + subDir);
         testDir.mkdir();
 
-        Verifier verifier = newVerifier(testDir.getAbsolutePath());
+        Verifier verifier = newVerifier(testDir.getAbsolutePath(), false);
         verifier.addCliArgument(option); // -f/--file
         verifier.addCliArgument("\"" + new File(resourceDir, 
subDir).getAbsolutePath() + "\""); // "<path>"
         verifier.addCliArgument("validate");
diff --git 
a/its/core-it-suite/src/test/resources/mng-6256-special-chars-alternate-pom-location/.mvn/.gitkeep
 
b/its/core-it-suite/src/test/resources/mng-6256-special-chars-alternate-pom-location/.mvn/.gitkeep
new file mode 100644
index 0000000000..e69de29bb2

Reply via email to