You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2015/05/29 23:07:23 UTC
svn commit: r1682552 - in /lucene/dev/branches/branch_5x: ./ lucene/
lucene/common-build.xml
Author: sarowe
Date: Fri May 29 21:07:22 2015
New Revision: 1682552
URL: http://svn.apache.org/r1682552
Log:
LUCENE-5283: Introduce new build property tests.ifNoTests - when its value is 'ignore', 'ant test' will succeed even when zero tests were executed. (merged trunk r1682550)
Modified:
lucene/dev/branches/branch_5x/ (props changed)
lucene/dev/branches/branch_5x/lucene/ (props changed)
lucene/dev/branches/branch_5x/lucene/common-build.xml (contents, props changed)
Modified: lucene/dev/branches/branch_5x/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/common-build.xml?rev=1682552&r1=1682551&r2=1682552&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/common-build.xml (original)
+++ lucene/dev/branches/branch_5x/lucene/common-build.xml Fri May 29 21:07:22 2015
@@ -1355,6 +1355,9 @@ ant -Dsolr.test.leavetmpdir=true
# Do *not* filter stack traces emitted to the console.
ant -Dtests.filterstacks=false
+# Skip checking for no-executed tests in modules
+ant -Dtests.ifNoTests=ignore ...
+
# Output test files and reports.
${tests-output}/tests-report.txt - full ASCII tests report
${tests-output}/tests-failures.txt - failures only (if any)
@@ -1508,7 +1511,7 @@ ${tests-output}/junit4-*.suites - pe
});
statsFile.delete();
- if (total == 0) {
+ if (total == 0 && !"ignore".equals(project.getProperty("tests.ifNoTests"))) {
throw new BuildException("Not even a single test was executed (a typo in the filter pattern maybe?).");
}