diff --git a/eng/pipelines/common/templates/runtimes/build-test-job.yml b/eng/pipelines/common/templates/runtimes/build-test-job.yml index ca7cd7e68063e..4b70e7cf0a88d 100644 --- a/eng/pipelines/common/templates/runtimes/build-test-job.yml +++ b/eng/pipelines/common/templates/runtimes/build-test-job.yml @@ -95,6 +95,18 @@ jobs: - name: runtimeFlavorArgs value: '-mono' + - name: testTreeFilterArg + value: '' + + # Only build GCSimulator tests when the gc-simulator group is specified. + - ${{ if eq(parameters.testGroup, 'gc-simulator') }}: + - ${{ if eq(parameters.osGroup, 'windows') }}: + - name: testTreeFilterArg + value: '-tree GC/Scenarios/GCSimulator' + - ${{ if ne(parameters.osGroup, 'windows') }}: + - name: testTreeFilterArg + value: '-tree:GC/Scenarios/GCSimulator' + steps: # Install test build dependencies @@ -113,7 +125,7 @@ jobs: displayName: Disk Usage before Build # Build managed test components - - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)Managed allTargets skipnative skipgeneratelayout skiptestwrappers $(buildConfig) $(archType) $(runtimeFlavorArgs) $(crossArg) $(priorityArg) ci /p:TargetOS=AnyOS + - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(logRootNameArg)Managed allTargets skipnative skipgeneratelayout skiptestwrappers $(buildConfig) $(archType) $(runtimeFlavorArgs) $(crossArg) $(priorityArg) $(testTreeFilterArg) ci /p:TargetOS=AnyOS displayName: Build managed test components - ${{ if in(parameters.osGroup, 'OSX', 'iOS', 'tvOS') }}: