@@ -24,7 +24,7 @@ parameters:
2424
2525 - name : mdsPackageVersion
2626 type : string
27-
27+
2828 - name : postTestJobs
2929 type : jobList
3030 default : []
@@ -46,6 +46,10 @@ parameters:
4646 - name : testJobTimeout
4747 type : number
4848
49+ # If true, only flaky tests will be run. If false, all non-flaky tests will be run.
50+ - name : flakyTestsOnly
51+ type : boolean
52+
4953stages :
5054- ${{ each config in parameters.testConfigurations }} :
5155 - ${{ each image in config.value.images }} :
@@ -79,6 +83,7 @@ stages:
7983 configSqlFor : ${{ config.value.configSqlFor }}
8084 operatingSystem : ${{ config.value.operatingSystem }}
8185 isArm64 : ${{ eq(config.value.isArm64, 'true') }}
86+ flakyTestsOnly : ${{ parameters.flakyTestsOnly }}
8287 ${{if ne(config.value.configProperties, '{}') }} :
8388 ${{ each x86TF in config.value.configProperties.x86TestTargetFrameworks }} :
8489 ${{ if eq(x86TF, targetFramework) }} :
@@ -103,7 +108,7 @@ stages:
103108 useManagedSNI : ${{ useManagedSNI }}
104109 mdsArtifactsName : ${{ parameters.mdsArtifactsName }}
105110 mdsPackageVersion : ${{ parameters.mdsPackageVersion }}
106- prebuildSteps : ${{ parameters.prebuildSteps }}
111+ prebuildSteps : ${{ parameters.prebuildSteps }}
107112 targetFramework : ${{ targetFramework }}
108113 netcoreVersionTestUtils : ${{config.value.netcoreVersionTestUtils }}
109114 testSet : ${{ testSet }}
@@ -113,6 +118,7 @@ stages:
113118 configSqlFor : ${{ config.value.configSqlFor }}
114119 operatingSystem : ${{ config.value.operatingSystem }}
115120 isArm64 : ${{ eq(config.value.isArm64, 'true') }}
121+ flakyTestsOnly : ${{ parameters.flakyTestsOnly }}
116122 ${{if and(eq(usemanagedSNI, false), ne(config.value.configProperties, '{}')) }} :
117123 ${{ each x86TF in config.value.configProperties.x86TestTargetFrameworks }} :
118124 ${{ if eq(x86TF, targetFramework) }} :
@@ -122,7 +128,7 @@ stages:
122128- ${{ if ne(length(parameters.postTestJobs), 0) }} :
123129 - stage : Post_Test
124130 displayName : ' Post Test Jobs'
125- dependsOn :
131+ dependsOn :
126132 - ${{ each config in parameters.testConfigurations }} :
127133 - ${{ each image in config.value.images }} :
128134 - ${{ image.key }}
0 commit comments