From 3812f169715a05630fcaaa7a092b65cc8b9598d4 Mon Sep 17 00:00:00 2001 From: Alexandre Zollinger Chohfi Date: Tue, 2 Jul 2024 12:02:58 -0700 Subject: [PATCH] Use sh -c on MacOS tests to avoid hang. --- .pipelines/templates/build-nuget.yaml | 2 +- MSStore.CLI.UnitTests/MSStore.CLI.UnitTests.csproj | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pipelines/templates/build-nuget.yaml b/.pipelines/templates/build-nuget.yaml index 5e216ef..c623383 100644 --- a/.pipelines/templates/build-nuget.yaml +++ b/.pipelines/templates/build-nuget.yaml @@ -47,7 +47,7 @@ steps: CollectCoverage: true CoverletOutputFormat: cobertura DISPLAY: :0.0 -- script: dotnet test MSStore.CLI.UnitTests/MSStore.CLI.UnitTests.csproj --logger trx --results-directory $(Agent.TempDirectory) --configuration ${{ parameters.dotnet_configuration }} & wait +- script: sh -c "dotnet test MSStore.CLI.UnitTests/MSStore.CLI.UnitTests.csproj --logger trx --results-directory $(Agent.TempDirectory) --configuration ${{ parameters.dotnet_configuration }} & wait" condition: startsWith(variables.AgentOS, 'Darwin') displayName: Tests env: diff --git a/MSStore.CLI.UnitTests/MSStore.CLI.UnitTests.csproj b/MSStore.CLI.UnitTests/MSStore.CLI.UnitTests.csproj index 19b8537..ead9be9 100644 --- a/MSStore.CLI.UnitTests/MSStore.CLI.UnitTests.csproj +++ b/MSStore.CLI.UnitTests/MSStore.CLI.UnitTests.csproj @@ -12,10 +12,10 @@ - + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive