From d798e39c830328ec9b6d86481f0471f2b6384440 Mon Sep 17 00:00:00 2001 From: Manuel de la Pena Date: Fri, 7 Apr 2023 11:37:50 -0400 Subject: [PATCH] [CI] Use the checkout dir parameter as the root of the test projects. This allows the template to work from diff dirtectories allowing it to be correctly executed in the unified pipeline. --- eng/pipelines/common/maui-templates.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/pipelines/common/maui-templates.yml b/eng/pipelines/common/maui-templates.yml index cff88c1afec5..cb06ae9b1660 100644 --- a/eng/pipelines/common/maui-templates.yml +++ b/eng/pipelines/common/maui-templates.yml @@ -101,13 +101,13 @@ jobs: - task: DotNetCoreCLI@2 inputs: - projects: $(Build.SourcesDirectory)/src/TestUtils/src/Microsoft.Maui.IntegrationTests/Microsoft.Maui.IntegrationTests.csproj + projects: ${{ parameters.checkoutDirectory }}/src/TestUtils/src/Microsoft.Maui.IntegrationTests/Microsoft.Maui.IntegrationTests.csproj displayName: Build Microsoft.Maui.IntegrationTests - task: DotNetCoreCLI@2 inputs: command: test - projects: $(Build.SourcesDirectory)/src/TestUtils/src/Microsoft.Maui.IntegrationTests/bin/Debug/net7.0/Microsoft.Maui.IntegrationTests.dll + projects: ${{ parameters.checkoutDirectory }}/src/TestUtils/src/Microsoft.Maui.IntegrationTests/bin/Debug/net7.0/Microsoft.Maui.IntegrationTests.dll arguments: --logger "console;verbosity=normal" --filter "FullyQualifiedName=Microsoft.Maui.IntegrationTests.TemplateTests" publishTestResults: true testRunTitle: ${{ BuildPlatform.name }} template build tests @@ -164,13 +164,13 @@ jobs: - task: DotNetCoreCLI@2 inputs: - projects: $(Build.SourcesDirectory)/src/TestUtils/src/Microsoft.Maui.IntegrationTests/Microsoft.Maui.IntegrationTests.csproj + projects: ${{ parameters.checkoutDirectory }}/src/TestUtils/src/Microsoft.Maui.IntegrationTests/Microsoft.Maui.IntegrationTests.csproj displayName: Build Microsoft.Maui.IntegrationTests - task: DotNetCoreCLI@2 inputs: command: test - projects: $(Build.SourcesDirectory)/src/TestUtils/src/Microsoft.Maui.IntegrationTests/bin/Debug/net7.0/Microsoft.Maui.IntegrationTests.dll + projects: ${{ parameters.checkoutDirectory }}/src/TestUtils/src/Microsoft.Maui.IntegrationTests/bin/Debug/net7.0/Microsoft.Maui.IntegrationTests.dll arguments: --logger "console;verbosity=normal" --filter "Name=${{ RunPlatform.testName }}" publishTestResults: true testRunTitle: ${{ RunPlatform.testName }} template run tests