forked from firka/flutter
[devicelab] This no-op change marks 3 tests to run on LUCI builders. (#61257)
This commit is contained in:
@@ -36,6 +36,7 @@ class ManifestTask {
|
||||
@required this.requiredAgentCapabilities,
|
||||
@required this.isFlaky,
|
||||
@required this.timeoutInMinutes,
|
||||
@required this.onLuci,
|
||||
}) {
|
||||
final String taskName = 'task "$name"';
|
||||
_checkIsNotBlank(name, 'Task name', taskName);
|
||||
@@ -64,6 +65,9 @@ class ManifestTask {
|
||||
/// An optional custom timeout specified in minutes.
|
||||
final int timeoutInMinutes;
|
||||
|
||||
/// (Optional) Whether this test runs on LUCI.
|
||||
final bool onLuci;
|
||||
|
||||
/// Whether the task is supported by the current host platform
|
||||
bool isSupportedByHost() {
|
||||
final Set<String> supportedHosts = Set<String>.from(
|
||||
@@ -111,6 +115,7 @@ ManifestTask _validateAndParseTask(dynamic taskName, dynamic taskYaml) {
|
||||
'required_agent_capabilities',
|
||||
'flaky',
|
||||
'timeout_in_minutes',
|
||||
'on_luci',
|
||||
]);
|
||||
|
||||
final dynamic isFlaky = taskYaml['flaky'];
|
||||
@@ -124,6 +129,12 @@ ManifestTask _validateAndParseTask(dynamic taskName, dynamic taskYaml) {
|
||||
}
|
||||
|
||||
final List<dynamic> capabilities = _validateAndParseCapabilities(taskName as String, taskYaml['required_agent_capabilities']);
|
||||
|
||||
final dynamic onLuci = taskYaml['on_luci'];
|
||||
if (onLuci != null) {
|
||||
_checkType(onLuci is bool, onLuci, 'on_luci', 'boolean');
|
||||
}
|
||||
|
||||
return ManifestTask._(
|
||||
name: taskName as String,
|
||||
description: taskYaml['description'] as String,
|
||||
@@ -131,6 +142,7 @@ ManifestTask _validateAndParseTask(dynamic taskName, dynamic taskYaml) {
|
||||
requiredAgentCapabilities: capabilities as List<String>,
|
||||
isFlaky: isFlaky as bool ?? false,
|
||||
timeoutInMinutes: timeoutInMinutes as int,
|
||||
onLuci: onLuci as bool ?? false,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user