[jboss-cvs] JBossAS SVN: r107919 - trunk/testsuite.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Aug 31 10:52:04 EDT 2010


Author: smcgowan at redhat.com
Date: 2010-08-31 10:52:04 -0400 (Tue, 31 Aug 2010)
New Revision: 107919

Modified:
   trunk/testsuite/build.xml
Log:
JBAS-7924 - fail build if smoke tests fail

Modified: trunk/testsuite/build.xml
===================================================================
--- trunk/testsuite/build.xml	2010-08-31 14:18:37 UTC (rev 107918)
+++ trunk/testsuite/build.xml	2010-08-31 14:52:04 UTC (rev 107919)
@@ -1609,7 +1609,8 @@
          haltonfailure="${junit.haltonfailure}"
          fork="${junit.fork}"
          timeout="${junit.timeout}"
-         jvm="${junit.jvm}">
+         jvm="${junit.jvm}"
+          failureproperty="smoke.test.failure">
 
          <jvmarg line="${junit.jvm.options}"/>
 
@@ -1662,7 +1663,16 @@
             </fileset>
          </batchtest>
       </junit>
+      
+      <!-- Check if some test failed (smoke.test.failure property will be set by JUnit
+      	if there are any failures -->
+      <antcall target="check.smoke.test.failure"/>
+      
    </target>
+    
+    <target name="check.smoke.test.failure" if="smoke.test.failure">
+		<fail message="Some tests FAILED. Check the logs for details"/>
+	</target>
 
   <!--
      Web Profile Tests



More information about the jboss-cvs-commits mailing list