diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 2054a75b6b..bb49b1b3e9 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -152,7 +152,7 @@ jobs: runProxy: true rootFolder: '$(Build.SourcesDirectory)/sdk/${{parameters.ServiceDirectory}}' templateFolder: '$(Build.SourcesDirectory)/sdk/${{parameters.ServiceDirectory}}' - condition: and(succeeded(), contains(variables.CmakeArgs, 'BUILD_TESTING=ON')) + condition: and(succeeded(), contains(variables.CmakeArgs, 'BUILD_TESTING=ON'),ne('${{parameters.ServiceDirectory}}', 'template')) - ${{ parameters.PreTestSteps }} @@ -160,7 +160,7 @@ jobs: test-proxy restore -a $(Build.SourcesDirectory)/sdk/${{parameters.ServiceDirectory}} workingDirectory: '$(Build.SourcesDirectory)/sdk/${{parameters.ServiceDirectory}}' displayName: Restore Recordings - condition: and(succeeded(), contains(variables.CmakeArgs, 'BUILD_TESTING=ON'), ne('${{parameters.ServiceDirectory}}', 'core')) + condition: and(succeeded(), contains(variables.CmakeArgs, 'BUILD_TESTING=ON'), ne('${{parameters.ServiceDirectory}}', 'core'),ne('${{parameters.ServiceDirectory}}', 'template')) - pwsh: | ctest ` @@ -178,7 +178,7 @@ jobs: - pwsh: | get-content test-proxy.log displayName: TestProxy Log - condition: and(succeededOrFailed(), contains(variables.CmakeArgs, 'BUILD_TESTING=ON')) + condition: and(succeededOrFailed(), contains(variables.CmakeArgs, 'BUILD_TESTING=ON'),ne('${{parameters.ServiceDirectory}}', 'template')) workingDirectory: $(Build.SourcesDirectory) continueOnError: true