Skip to content

Commit fe860ef

Browse files
handle armRequired capability for espresso tests
1 parent 05ea6e3 commit fe860ef

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

api/saucectl.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,10 @@
10081008
"description": "The set of one or more versions of the device platform on which to run the test suite.",
10091009
"type": "array",
10101010
"minItems": 1
1011+
},
1012+
"armRequired": {
1013+
"description": "Specifies if ARM architecture is required to run this test.",
1014+
"type": "boolean"
10111015
}
10121016
},
10131017
"required": [

api/v1alpha/framework/espresso.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@
202202
"description": "The set of one or more versions of the device platform on which to run the test suite.",
203203
"type": "array",
204204
"minItems": 1
205+
},
206+
"armRequired": {
207+
"description": "Specifies if ARM architecture is required to run this test.",
208+
"type": "boolean"
205209
}
206210
},
207211
"required": [

internal/espresso/config_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ suites:
189189
- name: "Google Pixel C GoogleAPI Emulator"
190190
platformVersions:
191191
- "8.1"
192+
armRequired: true
192193
`, fs.WithMode(0655)))
193194
defer dir.Remove()
194195

@@ -233,6 +234,7 @@ suites:
233234
PlatformVersions: []string{
234235
"8.1",
235236
},
237+
ARMRequired: true,
236238
},
237239
}},
238240
},

internal/saucecloud/espresso.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ func (r *EspressoRunner) newStartOptions(
249249
NetworkProfile: s.NetworkProfile,
250250
NetworkConditions: configToJobNetworkConditions(s.NetworkConditions),
251251

252+
ARMRequired: d.armRequired,
253+
252254
// RDC Specific flags
253255
RealDevice: d.isRealDevice,
254256
DeviceHasCarrier: d.hasCarrier,

0 commit comments

Comments
 (0)