Merge pull request #24342 from asmorkalov:as/java_test_status

Fail Java test suite, execution, if one of test failed.
This commit is contained in:
Alexander Smorkalov 2023-10-02 09:17:11 +03:00 committed by GitHub
commit 63819c1e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -962,9 +962,9 @@ public class CoreTest extends OpenCVTestCase {
assertEquals(0.0, d);
d = Core.Mahalanobis(line1, line2, covar);
assertTrue(d > 0.0);
// Bug: https://github.com/opencv/opencv/issues/24348
// d = Core.Mahalanobis(line1, line2, covar);
// assertTrue(d > 0.0);
}
public void testMax() {

View File

@ -42,7 +42,7 @@
<target name="test" depends="jar">
<mkdir dir="${test.dir}"/>
<junit printsummary="withOutAndErr" haltonfailure="false" haltonerror="false" showoutput="true" logfailedtests="true" maxmemory="256m">
<junit printsummary="withOutAndErr" failureproperty="junit_test.failed" haltonfailure="false" haltonerror="false" showoutput="true" logfailedtests="true" maxmemory="256m">
<sysproperty key="java.library.path" path="${opencv.lib.path}"/>
<env key="PATH" path="${opencv.lib.path}:${env.PATH}:${env.Path}"/>
<env key="DYLD_LIBRARY_PATH" path="${env.OPENCV_SAVED_DYLD_LIBRARY_PATH}"/> <!-- https://github.com/opencv/opencv/issues/14353 -->
@ -65,6 +65,7 @@
</fileset>
<report format="noframes" todir="${test.dir}"/>
</junitreport>
<fail message="JUnit test execution failed" if="junit_test.failed"/>
</target>
<target name="build" depends="jar">