Replace hostname included by junit in reports with "i2ptester"

The fake hostname can be overridden by setting the host.fakename property.
This commit is contained in:
str4d
2012-03-16 01:41:23 +00:00
parent 786a261a70
commit 9d07bc241c
2 changed files with 12 additions and 0 deletions

View File

@@ -139,6 +139,12 @@
</batchtest>
<formatter type="xml"/>
</junit>
<!-- fetch the real hostname of this machine -->
<exec executable="hostname" outputproperty="host.name"/>
<!-- set if unset -->
<property name="host.fakename" value="i2ptester" />
<!-- replace hostname that junit inserts into reports with fake one -->
<replace dir="../../reports/core/junit/" token="${host.name}" value="${host.fakename}"/>
</target>
<!-- test reports -->
<target name="junit.report">

View File

@@ -144,6 +144,12 @@
</batchtest>
<formatter type="xml"/>
</junit>
<!-- fetch the real hostname of this machine -->
<exec executable="hostname" outputproperty="host.name"/>
<!-- set if unset -->
<property name="host.fakename" value="i2ptester" />
<!-- replace hostname that junit inserts into reports with fake one -->
<replace dir="../../reports/router/junit/" token="${host.name}" value="${host.fakename}"/>
</target>
<!-- test reports -->
<target name="junit.report">