Skip to content

Commit a7dabfb

Browse files
authored
HADOOP-19594. (Followup) Gloablly configure surefire.failIfNoSpecifiedTests=false (#7995) Contributed by Cheng Pan.
* HADOOP-19594. (Followup) Gloablly configure surefire.failIfNoSpecifiedTests=false Reviewed-by: Istvan Toth <[email protected]> Signed-off-by: Shilun Fan <[email protected]>
1 parent 5000a98 commit a7dabfb

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

hadoop-assemblies/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
<name>Apache Hadoop Assemblies</name>
3232
<description>Apache Hadoop Assemblies</description>
3333

34-
<properties>
35-
<failIfNoTests>false</failIfNoTests>
36-
</properties>
37-
3834
<build>
3935
<plugins>
4036
<plugin>

hadoop-build-tools/pom.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
<description>Apache Hadoop Build Tools Project</description>
2626
<name>Apache Hadoop Build Tools</name>
2727

28-
<properties>
29-
<failIfNoTests>false</failIfNoTests>
30-
</properties>
3128
<build>
3229
<resources>
3330
<resource>

hadoop-project/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
<!-- Set the Release year during release -->
3434
<release-year>2025</release-year>
3535

36-
<failIfNoTests>false</failIfNoTests>
3736
<!--Whether to proceed to next module if any test failures exist-->
3837
<maven.test.failure.ignore>true</maven.test.failure.ignore>
3938
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
@@ -193,13 +192,6 @@
193192
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
194193
<maven-surefire-report-plugin.version>${maven-surefire-plugin.version}</maven-surefire-report-plugin.version>
195194
<maven-failsafe-plugin.version>${maven-surefire-plugin.version}</maven-failsafe-plugin.version>
196-
<!--
197-
Surefire option to not fail a build if -Dtest=NAME doesn't find a
198-
test called NAME. This is needed when running integration tests through
199-
failsafe, as setting -Dtest=none is the way to stop surefire
200-
running all unit tests before the it.test option is picked up.
201-
-->
202-
<surefire.failIfNoSpecifiedTests>false</surefire.failIfNoSpecifiedTests>
203195
<!-- Flag to stop surefire from shortening test stacks -->
204196
<trimStackTrace>false</trimStackTrace>
205197

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x
129129
<shell-executable>bash</shell-executable>
130130

131131
<leveldbjni.group>org.fusesource.leveldbjni</leveldbjni.group>
132+
133+
<!--
134+
Surefire option to not fail a build if -Dtest=NAME doesn't find a
135+
test called NAME. This is needed when running integration tests through
136+
failsafe, as setting -Dtest=none is the way to stop surefire
137+
running all unit tests before the it.test option is picked up.
138+
-->
139+
<surefire.failIfNoSpecifiedTests>false</surefire.failIfNoSpecifiedTests>
132140
</properties>
133141

134142
<modules>

0 commit comments

Comments
 (0)