mirror of
https://github.com/microsoft/terminal.git
synced 2025-12-11 04:38:24 -06:00
Stage WinAppDriver into its own folder (#15953)
WinAppDriver depends on a bunch of .NET assemblies that collide *big time*. Let's just quarantine it. I kept the fallback to $TESTDIR\WinAppDriver.exe because there's a chance that the Windows build depends on it.
This commit is contained in:
parent
4bc34e490c
commit
2fa8e766bb
@ -22,7 +22,12 @@ namespace Host.Tests.UIA
|
||||
public static void SetupAll(TestContext context)
|
||||
{
|
||||
Log.Comment("Searching for WinAppDriver in the same directory where this test was launched from...");
|
||||
string winAppDriver = Path.Combine(context.TestDeploymentDir, "WinAppDriver.exe");
|
||||
string winAppDriver = Path.Combine(context.TestDeploymentDir, "WinAppDriver", "WinAppDriver.exe");
|
||||
|
||||
if (!File.Exists(winAppDriver))
|
||||
{
|
||||
winAppDriver = Path.Combine(context.TestDeploymentDir, "WinAppDriver.exe");
|
||||
}
|
||||
|
||||
Log.Comment($"Attempting to launch WinAppDriver at: {winAppDriver}");
|
||||
Log.Comment($"Working directory: {Environment.CurrentDirectory}");
|
||||
|
||||
@ -126,7 +126,7 @@
|
||||
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy "$(SolutionDir)\dep\WinAppDriver\*" "$(OutDir)\"</PostBuildEvent>
|
||||
<PostBuildEvent>mkdir "$(OutDir)\WinAppDriver" 2>nul & copy "$(SolutionDir)\dep\WinAppDriver\*" "$(OutDir)\WinAppDriver\"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\..\common.nugetversions.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@ -149,7 +149,7 @@
|
||||
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy "$(SolutionDir)\dep\WinAppDriver\*" "$(OutDir)\"</PostBuildEvent>
|
||||
<PostBuildEvent>mkdir "$(OutDir)\WinAppDriver" 2>nul & copy "$(SolutionDir)\dep\WinAppDriver\*" "$(OutDir)\WinAppDriver\"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\..\common.nugetversions.targets" />
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@ -28,7 +28,12 @@ namespace Host.Tests.UIA
|
||||
public static void SetupAll(TestContext context)
|
||||
{
|
||||
Log.Comment("Searching for WinAppDriver in the same directory where this test was launched from...");
|
||||
string winAppDriver = Path.Combine(context.TestDeploymentDir, "WinAppDriver.exe");
|
||||
string winAppDriver = Path.Combine(context.TestDeploymentDir, "WinAppDriver", "WinAppDriver.exe");
|
||||
|
||||
if (!File.Exists(winAppDriver))
|
||||
{
|
||||
winAppDriver = Path.Combine(context.TestDeploymentDir, "WinAppDriver.exe");
|
||||
}
|
||||
|
||||
Log.Comment($"Attempting to launch WinAppDriver at: {winAppDriver}");
|
||||
Log.Comment($"Working directory: {Environment.CurrentDirectory}");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user