Skip to content

Commit 0ecffc1

Browse files
committed
Get nunit to put its ShadowCopyCache under /tmp on mono
1 parent 82f4f07 commit 0ecffc1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

projects/client/Unit/RabbitMQ.Client.Unit.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,14 @@
5353
<Exec Command="certmgr -add -c Trust $(SSLCertsDir)/testca/cacert.cer"/>
5454
</Target>
5555

56+
<!-- Decide whether we need to set TEMP under mono -->
57+
<PropertyGroup>
58+
<MonoNunitTempSetting Condition="'$(PropUsingMono)' == 'true' and '$(temp)' == ''">temp=/tmp </MonoNunitTempSetting>
59+
</PropertyGroup>
60+
5661
<!-- Running the tests -->
5762
<Target Name="RunUnitTests" DependsOnTargets="ImportSSL">
58-
<Exec Command='$(PropLaunchExe)..\..\..\lib\nunit\nunit-console.exe "build\bin\$(AssemblyName).dll"' WorkingDirectory="$(MSBuildProjectDirectory)" ContinueOnError="true" />
63+
<Exec Command='$(MonoNunitTempSetting)$(PropLaunchExe)..\..\..\lib\nunit\nunit-console.exe "build\bin\$(AssemblyName).dll"' WorkingDirectory="$(MSBuildProjectDirectory)" ContinueOnError="true" />
5964
</Target>
6065

6166
<!-- Clean test result file -->

0 commit comments

Comments
 (0)