1*9c5db199SXin Li# Copyright (c) 2014 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""" 6*9c5db199SXin LiThis module contains the status enums for use by Hosts in the 7*9c5db199SXin Lidatabase. It is a stand alone module as these status strings 8*9c5db199SXin Liare need from vairous disconnected pieces of code. 9*9c5db199SXin Li""" 10*9c5db199SXin Li 11*9c5db199SXin Lifrom autotest_lib.client.common_lib import autotest_enum 12*9c5db199SXin Li 13*9c5db199SXin LiStatus = autotest_enum.AutotestEnum('Verifying', 'Running', 'Ready', 14*9c5db199SXin Li 'Repairing', 'Repair Failed', 'Cleaning', 15*9c5db199SXin Li 'Pending', 'Resetting', 'Provisioning', 16*9c5db199SXin Li string_values=True) 17*9c5db199SXin Li 18*9c5db199SXin Li# States associated with a DUT that is doing nothing, whether or not 19*9c5db199SXin Li# it's eligible to run a test. 20*9c5db199SXin LiIDLE_STATES = {Status.READY, Status.REPAIR_FAILED} 21*9c5db199SXin Li 22*9c5db199SXin Li# States associated with a DUT that is not available for jobs. Note that a 23*9c5db199SXin Li# locked host is also unavailable no matter the status. 24*9c5db199SXin LiUNAVAILABLE_STATES = {Status.REPAIR_FAILED, Status.REPAIRING, Status.VERIFYING} 25