mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Strengthen the tests for the possibility that SetUpFixture does not run in the beginning.
This commit is contained in:
@@ -145,12 +145,10 @@
|
||||
</exec>
|
||||
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.services.inventoryservice.tests)==0}" />
|
||||
|
||||
<!-- This uses SetUpFixture, which older versions of nant don't seem to understand, so commenting for now
|
||||
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.tests.permissions">
|
||||
<arg value="./bin/OpenSim.Tests.Permissions.dll" />
|
||||
</exec>
|
||||
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests.permissions)==0}" />
|
||||
-->
|
||||
|
||||
<delete dir="%temp%"/>
|
||||
</target>
|
||||
@@ -267,12 +265,10 @@
|
||||
<arg value="-xml=test-results/OpenSim.Services.InventoryService.Tests.dll-Results.xml" />
|
||||
</exec>
|
||||
|
||||
<!--
|
||||
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.tests.permissions">
|
||||
<arg value="./bin/OpenSim.Tests.Permissions.dll" />
|
||||
<arg value="-xml=test-results/OpenSim.Tests.Permissions.dll-Results.xml" />
|
||||
</exec>
|
||||
-->
|
||||
|
||||
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests)==0}" />
|
||||
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.tests)==0}" />
|
||||
@@ -285,7 +281,7 @@
|
||||
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.tests)==0}" />
|
||||
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.capabilities.handlers.tests)==0}" />
|
||||
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.services.inventoryservice.tests)==0}" />
|
||||
<!-- <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests.permissions)==0}" /> -->
|
||||
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests.permissions)==0}" />
|
||||
</target>
|
||||
|
||||
<target name="doxygen">
|
||||
|
||||
@@ -44,6 +44,13 @@ namespace OpenSim.Tests.Permissions
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
{
|
||||
// In case we're dealing with some older version of nunit
|
||||
if (Common.TheInstance == null)
|
||||
{
|
||||
Common c = new Common();
|
||||
c.SetUp();
|
||||
}
|
||||
|
||||
Common.TheInstance.DeleteObjectsFolders();
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,12 @@ namespace OpenSim.Tests.Permissions
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
{
|
||||
// In case we're dealing with some older version of nunit
|
||||
if (Common.TheInstance == null)
|
||||
{
|
||||
Common c = new Common();
|
||||
c.SetUp();
|
||||
}
|
||||
Common.TheInstance.DeleteObjectsFolders();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user