1*9c5db199SXin Li# Copyright 2016 The Chromium OS Authors. All rights reserved. 2*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be 3*9c5db199SXin Li# found in the LICENSE file. 4*9c5db199SXin Li 5*9c5db199SXin Li"""This class defines the common Label classes.""" 6*9c5db199SXin Li 7*9c5db199SXin Liimport common 8*9c5db199SXin Li 9*9c5db199SXin Lifrom autotest_lib.server.cros.dynamic_suite import constants 10*9c5db199SXin Lifrom autotest_lib.server.hosts import base_label 11*9c5db199SXin Li 12*9c5db199SXin Li 13*9c5db199SXin Liclass OSLabel(base_label.StringPrefixLabel): 14*9c5db199SXin Li """Return the os label.""" 15*9c5db199SXin Li 16*9c5db199SXin Li _NAME = constants.OS_PREFIX 17*9c5db199SXin Li 18*9c5db199SXin Li # pylint: disable=missing-docstring 19*9c5db199SXin Li def generate_labels(self, host): 20*9c5db199SXin Li return [host.get_os_type()] 21