Home | History | Annotate | Download | only in cli

Lines Matching refs:platform

76     def _cleanup_labels(self, labels, platform=None):
77 """Removes the platform label from the overall labels"""
78 if platform:
80 if label != platform]
84 if not label['platform']]
203 # Remove the platform from the labels.
206 result['platform'])
211 'shard', 'locked', 'lock_reason', 'locked_by', 'platform',
259 keys=['hostname', 'platform',
376 self.parser.add_option('-t', '--platform',
377 help='Sets the platform label')
413 self.platform = options.platform
464 condition = lambda l: l['name'] not in labels and not l['platform']
471 """Apply the platform label to host (and remove existing).
474 @param platform_label: platform label's name
476 self._remove_labels(host, lambda l: l['platform'])
478 platform=True)
495 --platform <arch>
552 if self.platform:
553 self._set_platform_label(host, self.platform)
579 def __init__(self, hostname, platform, labels):
581 self.platform = platform
586 """atest host create [--lock|--unlock --platform <arch>
607 cls, web_server, hosts, platform=None,
619 @param platform: A string or None.
634 obj.platform = platform
647 """Detect platform and labels from the host.
703 # Now add the platform label.
704 # If a platform was not provided and we were able to retrieve it
705 # from the host, use the retrieved platform.
706 platform = self.platform if self.platform else host_info.platform
707 if platform:
708 self._set_platform_label(host, platform)