From 3a04235001c95fc309ab7c675c6f84b27b9df7e6 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Thu, 17 Feb 2022 15:26:22 -0800 Subject: [PATCH] Add option to disable running integration tests (#18454) (#18456) * Add option to disable running integration tests * succeeded (cherry picked from commit 932865ceeef51af743fabf8b6524030972455b32) --- build/azure-pipelines/win32/sql-product-test-win32.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/azure-pipelines/win32/sql-product-test-win32.yml b/build/azure-pipelines/win32/sql-product-test-win32.yml index 87c105df1c..d18db41d90 100644 --- a/build/azure-pipelines/win32/sql-product-test-win32.yml +++ b/build/azure-pipelines/win32/sql-product-test-win32.yml @@ -51,7 +51,7 @@ steps: $AppNameShort = $AppProductJson.nameShort exec { $env:INTEGRATION_TEST_ELECTRON_PATH = "$AppRoot\$AppNameShort.exe"; $env:INTEGRATION_TEST_CLI_PATH = "$AppRoot\bin\$AppNameShort"; .\scripts\sql-test-integration.bat } continueOnError: false - condition: and(succeeded(), eq(variables['RUN_TESTS'], 'true')) + condition: and(succeeded(), and(eq(variables['RUN_TESTS'], 'true'), ne(variables['RUN_INTEGRATION_TESTS'], 'false'))) displayName: Run stable tests env: BDC_BACKEND_USERNAME: $(ads-integration-test-bdc-server-username) @@ -75,7 +75,7 @@ steps: $AppNameShort = $AppProductJson.nameShort exec { $env:INTEGRATION_TEST_ELECTRON_PATH = "$AppRoot\$AppNameShort.exe"; .\scripts\sql-test-integration-unstable.bat } continueOnError: true - condition: and(succeeded(), eq(variables['RUN_UNSTABLE_TESTS'], 'true')) + condition: and(succeeded(), and(eq(variables['RUN_UNSTABLE_TESTS'], 'true'), ne(variables['RUN_INTEGRATION_TESTS'], 'false'))) displayName: Run unstable integration tests env: BDC_BACKEND_USERNAME: $(ads-integration-test-bdc-server-username) @@ -99,4 +99,4 @@ steps: mergeTestResults: true failTaskOnFailedTests: true continueOnError: true - condition: and(succeededOrFailed(), eq(variables['RUN_TESTS'], 'true')) + condition: and(succeededOrFailed(), and(eq(variables['RUN_TESTS'], 'true'), ne(variables['RUN_INTEGRATION_TESTS'], 'false')))