Lines Matching full:labels
46 This is used for determine actions to perform based on labels, for
75 @returns: A string that is the prefix of version labels for the type
128 Base class to give a template for mapping labels to tests.
131 # A dictionary mapping labels to test names.
160 def run_task_actions(cls, job, host, labels): argument
162 Run task actions on host that correspond to the labels.
169 @param labels: The list of job labels to work on.
172 unactionable = cls._filter_unactionable_labels(labels)
177 for action_item, value in cls._actions_and_values_iter(labels):
184 def _actions_and_values_iter(cls, labels): argument
185 """Return sorted action and value pairs to run for labels.
190 actionable = cls._filter_actionable_labels(labels)
200 def _filter_unactionable_labels(cls, labels): argument
202 Return labels that we cannot act on.
204 @param labels: A list of strings of labels.
205 @returns: A set of unactionable labels
207 return {label for label in labels
212 def _filter_actionable_labels(cls, labels): argument
214 Return labels that we can act on.
216 @param labels: A list of strings of labels.
217 @returns: A set of actionable labels
219 return {label for label in labels if cls.acts_on(label)}
223 def partition(cls, labels): argument
225 Filter a list of labels into two sets: those labels that we know how to
228 @param labels: A list of strings of labels.
230 labels, and the second element is a set of the actionable
231 labels.
236 for label in labels: