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