diff --git a/eng/pipelines/templates/jobs/live.tests.yml b/eng/pipelines/templates/jobs/live.tests.yml index 11e9380e1..0d07d04ba 100644 --- a/eng/pipelines/templates/jobs/live.tests.yml +++ b/eng/pipelines/templates/jobs/live.tests.yml @@ -148,10 +148,15 @@ jobs: # We don't need to set it to invoke ctest # Visual Studio generator used in CI is a multi-config generator. # As such, it requires the configuration argument for building and invoking ctest - - script: ctest $(WindowsCtestConfig) -V --tests-regex "${{ parameters.CtestRegex }}" --no-compress-output -T Test + - bash: | + export AZURE_CLIENT_ID=$(${{parameters.ServiceDirectory}}_CLIENT_ID) + export AZURE_TENANT_ID=$(${{parameters.ServiceDirectory}}_TENANT_ID) + export AZURE_CLIENT_SECRET=$(${{parameters.ServiceDirectory}}_CLIENT_SECRET) + + ctest $(WindowsCtestConfig) -V --tests-regex "${{ parameters.CtestRegex }}" --no-compress-output -T Test workingDirectory: build displayName: ctest - # Runs only if test-resources are happly deployed. + # Runs only if test-resources are happily deployed. # unit-tests runs for those configs where samples are not ran. # This enables to run tests and samples at the same time as different matrix configuration. # Then unit-tests runs, samples should not run.