harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r486301 - /harmony/enhanced/classlib/trunk/make/build-test.xml
Date Tue, 12 Dec 2006 20:34:39 GMT
Author: apetrenko
Date: Tue Dec 12 12:34:38 2006
New Revision: 486301

URL: http://svn.apache.org/viewvc?view=rev&rev=486301
Log:
Patch for HARMONY-1710 "[classlib][testing] need a way to point the test resuls report directory"

Modified:
    harmony/enhanced/classlib/trunk/make/build-test.xml

Modified: harmony/enhanced/classlib/trunk/make/build-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/make/build-test.xml?view=diff&rev=486301&r1=486300&r2=486301
==============================================================================
--- harmony/enhanced/classlib/trunk/make/build-test.xml (original)
+++ harmony/enhanced/classlib/trunk/make/build-test.xml Tue Dec 12 12:34:38 2006
@@ -54,30 +54,34 @@
 
     <target name="gen-report" depends="full-report,short-report" />
 
+    <property name="report.dir" value="${tests.output}/html"/>
+
     <target name="full-report" unless="short.report" >
+        <delete dir="${report.dir}" />
         <junitreport todir="${tests.output}">
             <fileset dir="${tests.output}">
                 <include name="TEST*-*.xml"/>
             </fileset>
-            <report format="frames" todir="${tests.output}/html"/>
+            <report format="frames" todir="${report.dir}"/>
         </junitreport>
 
         <!-- use this property just to get the slashes to display right in the echo -->
-        <property name="display-location" location="${tests.output}/html/index.html"/>
+        <property name="display-location" location="${report.dir}/index.html"/>
         <echo message="The test report is in ${display-location}"/>
     </target>
 
     <target name="short-report" if="short.report" >
+        <delete dir="${report.dir}" />
         <junitreport todir="${tests.output}">
             <fileset dir="${tests.output}" includes="TEST*-*.xml">
                 <containsregexp expression='(errors|failures)="[1-9]' />
                 <exclude name="TESTS-TestSuites.xml" />
             </fileset>
-            <report format="frames" todir="${tests.output}/html"/>
+            <report format="frames" todir="${report.dir}"/>
         </junitreport>
 
         <!-- use this property just to get the slashes to display right in the echo -->
-        <property name="display-location" location="${tests.output}/html/index.html"/>
+        <property name="display-location" location="${report.dir}/index.html"/>
         <echo message="The short test report is in ${display-location}"/>
     </target>
 



Mime
View raw message