Skip to content

Commit

Permalink
Fix make run-tests
Browse files Browse the repository at this point in the history
`<SetEnvironmentVariable/>` was failing because `JI_JVM_PATH` was
being set to an empty string.
  • Loading branch information
jonpryor committed May 13, 2023
1 parent 30c41f9 commit cb29a4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-tools/scripts/RunNUnitTests.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<_Run Condition=" '$(RUN)' != '' ">--run=&quot;$(RUN)&quot;</_Run>
</PropertyGroup>
<Import
Condition=" Exists('..\..\bin\Build$(Configuration)\JdkInfo.props') "
Project="..\..\bin\Build$(Configuration)\JdkInfo.props"
Condition=" Exists('..\..\bin\Build$(Configuration)\JdkInfo-11.props') "
Project="..\..\bin\Build$(Configuration)\JdkInfo-11.props"
/>
<UsingTask AssemblyFile="$(MSBuildThisFileDirectory)..\..\bin\Build$(Configuration)\Java.Interop.BootstrapTasks.dll" TaskName="Java.Interop.BootstrapTasks.SetEnvironmentVariable" />
<ItemGroup>
Expand All @@ -27,7 +27,7 @@
<SetEnvironmentVariable Name="MONO_TRACE_LISTENER" Value="Console.Out" />
<SetEnvironmentVariable Name="JAVA_INTEROP_GREF_LOG" Value="bin\Test$(Configuration)\g-%(_TestAssembly.Filename).txt" />
<SetEnvironmentVariable Name="JAVA_INTEROP_LREF_LOG" Value="bin\Test$(Configuration)\l-%(_TestAssembly.Filename).txt" />
<SetEnvironmentVariable Name="JI_JVM_PATH" Value="$(JdkJvmPath)" />
<SetEnvironmentVariable Name="JI_JVM_PATH" Value="$(JdkJvm11Path)" />
<Exec
Command="$(_NUnit) $(NUNIT_EXTRA) %(_TestAssembly.Identity) $(_Run) --result=&quot;TestResult-%(Filename).xml&quot; --output=&quot;bin\Test$(Configuration)\TestOutput-%(Filename).txt&quot;"
WorkingDirectory="$(_TopDir)"
Expand Down

0 comments on commit cb29a4b

Please sign in to comment.