Changeset 9d07bc2


Ignore:
Timestamp:
Mar 16, 2012 1:41:23 AM (8 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
79ab065
Parents:
786a261
Message:

Replace hostname included by junit in reports with "i2ptester"

The fake hostname can be overridden by setting the host.fakename property.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/build.xml

    r786a261 r9d07bc2  
    140140            <formatter type="xml"/>
    141141        </junit>
     142        <!-- fetch the real hostname of this machine -->
     143        <exec executable="hostname" outputproperty="host.name"/>
     144        <!-- set if unset -->
     145        <property name="host.fakename" value="i2ptester" />
     146        <!-- replace hostname that junit inserts into reports with fake one -->
     147        <replace dir="../../reports/core/junit/" token="${host.name}" value="${host.fakename}"/>
    142148    </target>
    143149    <!-- test reports -->
  • router/java/build.xml

    r786a261 r9d07bc2  
    145145            <formatter type="xml"/>
    146146        </junit>
     147        <!-- fetch the real hostname of this machine -->
     148        <exec executable="hostname" outputproperty="host.name"/>
     149        <!-- set if unset -->
     150        <property name="host.fakename" value="i2ptester" />
     151        <!-- replace hostname that junit inserts into reports with fake one -->
     152        <replace dir="../../reports/router/junit/" token="${host.name}" value="${host.fakename}"/>
    147153    </target>
    148154    <!-- test reports -->
Note: See TracChangeset for help on using the changeset viewer.