From dd012fe95d441a3947ed2e5ea352814fd149e994 Mon Sep 17 00:00:00 2001 From: Larry Osterman Date: Fri, 8 Mar 2024 15:59:09 -0800 Subject: [PATCH] Define AZURE_CLIENT_ID for live tests in CI (#5431) * Define AZURE_CLIENT_ID for live tests in CI --- eng/pipelines/templates/jobs/live.tests.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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.