Browse Source

HADOOP-548. Add a property to build.xml that permits one to direct test output to the console. Contributed by Owen.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@448333 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 19 năm trước cách đây
mục cha
commit
ee8f352714
2 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 3 0
      CHANGES.txt
  2. 3 1
      build.xml

+ 3 - 0
CHANGES.txt

@@ -30,6 +30,9 @@ Trunk (unreleased changes)
 8. HADOOP-545.  Remove an unused config file parameter.
    (Philippe Gassmann via cutting)
 
+9. HADOOP-548.  Add an Ant property "test.output" to build.xml that
+   causes test output to be logged to the console.  (omalley via cutting)
+
 
 Release 0.6.2 (unreleased)
 

+ 3 - 1
build.xml

@@ -42,6 +42,7 @@
   <property name="test.build.javadoc" value="${test.build.dir}/docs/api"/>
   <property name="test.include" value="Test*"/>
   <property name="test.classpath.id" value="test.classpath"/>
+  <property name="test.output" value="no"/>
 
   <property name="libhdfs.test.conf.dir" value="${libhdfs.src}/tests/conf"/>
   <property name="libhdfs.test.log.dir" value="${build.libhdfs}/tests/logs"/>
@@ -294,7 +295,8 @@
     <mkdir dir="${test.build.data}"/>
     <delete dir="${hadoop.log.dir}"/>
     <mkdir dir="${hadoop.log.dir}"/>
-    <junit printsummary="yes" haltonfailure="no" fork="yes" dir="${basedir}"
+    <junit showoutput="${test.output}" printsummary="yes" haltonfailure="no" 
+           fork="yes" dir="${basedir}"
       errorProperty="tests.failed" failureProperty="tests.failed">
       <sysproperty key="test.build.data" value="${test.build.data}"/>
       <sysproperty key="hadoop.log.dir" value="${hadoop.log.dir}"/>