mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
src dir variable
This commit is contained in:
@@ -6,6 +6,8 @@ jobs:
|
|||||||
- job: UITest
|
- job: UITest
|
||||||
displayName: UI Test ${{ parameters.platform }} ${{ parameters.configuration }}
|
displayName: UI Test ${{ parameters.platform }} ${{ parameters.configuration }}
|
||||||
dependsOn: Build${{ parameters.platform }}${{ parameters.configuration }}
|
dependsOn: Build${{ parameters.platform }}${{ parameters.configuration }}
|
||||||
|
variables:
|
||||||
|
SrcPath: $(Build.Repository.LocalPath)
|
||||||
pool:
|
pool:
|
||||||
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
||||||
name: SHINE-OSS-Testing-x64
|
name: SHINE-OSS-Testing-x64
|
||||||
|
|||||||
@@ -17,9 +17,13 @@ namespace Microsoft.FancyZonesEditor.UITests
|
|||||||
[AssemblyInitialize]
|
[AssemblyInitialize]
|
||||||
public static void SetupAll(TestContext context)
|
public static void SetupAll(TestContext context)
|
||||||
{
|
{
|
||||||
string sourceDirPath = Path.GetFullPath($"{Environment.CurrentDirectory}" + @".\..\..\..\..\..\");
|
string? sourceDirPath = Environment.GetEnvironmentVariable("SrcPath"); // get source dir in CI
|
||||||
context.WriteLine($"source dir: {sourceDirPath}");
|
if (sourceDirPath == null)
|
||||||
|
{
|
||||||
|
sourceDirPath = Path.GetFullPath($"{Environment.CurrentDirectory}" + @".\..\..\..\..\..\"); // local
|
||||||
|
}
|
||||||
|
|
||||||
|
context.WriteLine($"source dir: {sourceDirPath}");
|
||||||
string winAppDriver = Path.Combine(sourceDirPath, @".\deps\WinAppDriver", "WinAppDriver.exe");
|
string winAppDriver = Path.Combine(sourceDirPath, @".\deps\WinAppDriver", "WinAppDriver.exe");
|
||||||
|
|
||||||
context.WriteLine($"Attempting to launch WinAppDriver at: {winAppDriver}");
|
context.WriteLine($"Attempting to launch WinAppDriver at: {winAppDriver}");
|
||||||
|
|||||||
Reference in New Issue
Block a user