From d3c9d1ad797859d3d775e5330d4ff934788f98ad Mon Sep 17 00:00:00 2001 From: Viktor Date: Fri, 18 Jan 2019 18:11:17 +0100 Subject: [PATCH] Fix UapAot runs --- eng/dependencies.props | 2 +- external/test-runtime/XUnit.Runtime.depproj | 19 ++++++++++++------- .../Diagnostics/RemoteExecutorTestBase.aot.cs | 4 ++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/eng/dependencies.props b/eng/dependencies.props index d36d9ca274ee..bc7b1c8cadf9 100644 --- a/eng/dependencies.props +++ b/eng/dependencies.props @@ -43,7 +43,7 @@ 2.4.1-pre.build.4059 1.0.0-beta-build0020 2.0.5 - 1.0.25 + 1.0.26 1.4.0 diff --git a/external/test-runtime/XUnit.Runtime.depproj b/external/test-runtime/XUnit.Runtime.depproj index f0724ebb3217..6f514dd01134 100644 --- a/external/test-runtime/XUnit.Runtime.depproj +++ b/external/test-runtime/XUnit.Runtime.depproj @@ -19,6 +19,7 @@ xunit.runner.visualstudio.dotnetcore.testadapter xunit.runner.visualstudio.uwp.testadapter xunit.runner.visualstudio.testadapter + microsoft.dotnet.uap.testtools microsoft.net.test.sdk microsoft.testplatform.testhost Microsoft.Diagnostics.Tracing.TraceEvent @@ -34,7 +35,7 @@ - + @@ -135,9 +136,8 @@ AfterTargets="AfterResolveReferences"> - microsoft.dotnet.uap.testtools - $(PackagesDir)$(UAPToolsPackageName)\$(UAPToolsPackageVersion)\Tools\$(ArchGroup) + $(PackagesDir)$(MicrosoftDotNetUapTestToolsPackageName)\$(MicrosoftDotNetUapTestToolsPackageVersion)\Tools\$(ArchGroup) $(UAPToolsFolder.Replace('/', '\')) @@ -251,8 +251,8 @@ Condition="'$(TargetGroup)' == 'uap' OR '$(TargetGroup)' == 'uapaot'" BeforeTargets="ResolveReferences"> - - + false - $(XUnitRunnerConsolePackageName) + $(MicrosoftDotNetUapTestToolsPackageName) + $(MicrosoftDotNetUapTestToolsPackageVersion) + + + false + xunit.runner.utility $(XUnitPackageVersion) diff --git a/src/CoreFx.Private.TestUtilities/src/System/Diagnostics/RemoteExecutorTestBase.aot.cs b/src/CoreFx.Private.TestUtilities/src/System/Diagnostics/RemoteExecutorTestBase.aot.cs index 7faa3ce470c3..4ee1e316fec6 100644 --- a/src/CoreFx.Private.TestUtilities/src/System/Diagnostics/RemoteExecutorTestBase.aot.cs +++ b/src/CoreFx.Private.TestUtilities/src/System/Diagnostics/RemoteExecutorTestBase.aot.cs @@ -10,9 +10,9 @@ namespace System.Diagnostics /// Base class used for all tests that need to spawn a remote process. public abstract partial class RemoteExecutorTestBase : FileCleanupTestBase { - protected static readonly string HostRunnerName = PlatformDetection.IsWindows ? "dotnet.exe" : "dotnet"; + protected static readonly string HostRunnerName = "xunit.console.exe"; protected static readonly string HostRunner = Process.GetCurrentProcess().MainModule.FileName; - private static readonly string ExtraParameter = TestConsoleApp; + private static readonly string ExtraParameter = "remote"; } }