You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2023/10/04 21:15:23 UTC

[maven-integration-testing] 01/01: [MNG-7898] Missing .mvn directory should not be reported in quiet mode

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

sjaranowski pushed a commit to branch MNG-7898
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git

commit 8ab083912841a2c4832da694fc087b5c1de73a7d
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Wed Oct 4 23:15:03 2023 +0200

    [MNG-7898] Missing .mvn directory should not be reported in quiet mode
---
 .../org/apache/maven/it/MavenITmng3183LoggingToFileTest.java     | 9 +--------
 core-it-suite/src/test/resources/mng-4387/.mvn/empty             | 0
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3183LoggingToFileTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3183LoggingToFileTest.java
index d905981a7..f90ba8ebb 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3183LoggingToFileTest.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3183LoggingToFileTest.java
@@ -67,14 +67,7 @@ public class MavenITmng3183LoggingToFileTest extends AbstractMavenIntegrationTes
             }
         }
 
-        if (getMavenVersion().getMajorVersion() < 4) {
-            assertEquals(Collections.EMPTY_LIST, stdout);
-        } else {
-            assertEquals(1, stdout.size());
-            assertEquals(
-                    "Unable to find the root directory. Create a .mvn directory in the root directory or add the root=\"true\" attribute on the root project's model to identify it.",
-                    stdout.iterator().next());
-        }
+        assertEquals(Collections.EMPTY_LIST, stdout);
 
         List<String> log = verifier.loadLines("maven.log", "UTF-8");
 
diff --git a/core-it-suite/src/test/resources/mng-4387/.mvn/empty b/core-it-suite/src/test/resources/mng-4387/.mvn/empty
deleted file mode 100644
index e69de29bb..000000000