blob: 5192388740b04da67f2701980e7975f330e4959d [file] [log] [blame]
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This class defines the common Label classes."""
import common
from autotest_lib.server.hosts import base_label
class OSLabel(base_label.StringPrefixLabel):
"""Return the os label."""
_NAME = 'os'
# pylint: disable=missing-docstring
def generate_labels(self, host):
return [host.get_os_type()]