forked from I2P_Developers/i2p.i2p
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:
@@ -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">
|
||||
|
@@ -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">
|
||||
|
Reference in New Issue
Block a user