Author: lektran
Date: Thu Nov 26 21:08:20 2009
New Revision: 884698
URL:
http://svn.apache.org/viewvc?rev=884698&view=revLog:
Changed the run-tests target to delay failure until the junitreport task has completed
Modified:
ofbiz/trunk/build.xml
Modified: ofbiz/trunk/build.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/build.xml?rev=884698&r1=884697&r2=884698&view=diff==============================================================================
--- ofbiz/trunk/build.xml (original)
+++ ofbiz/trunk/build.xml Thu Nov 26 21:08:20 2009
@@ -435,7 +435,7 @@
</target>
<target name="run-tests" depends="build"
description="Run OFBiz default tests">
- <java jar="ofbiz.jar" fork="true" failonerror="true">
+ <java jar="ofbiz.jar" fork="true" resultproperty="test.result">
<jvmarg value="${memory.initial.param}"/>
<jvmarg value="${memory.max.param}"/>
<jvmarg value="${memory.maxpermsize.param}"/>
@@ -448,6 +448,13 @@
</fileset>
<report format="frames" todir="runtime/logs/test-results/html"/>
</junitreport>
+ <fail message="Test run was unsuccessful">
+ <condition>
+ <not>
+ <equals arg1="${test.result}" arg2="0"/>
+ </not>
+ </condition>
+ </fail>
</target>
<target name="_save-runtime-data">
<delete file="runtime/data.zip"/>