virt.virt_test_utils: run_autotest - 'tar' needs relative paths to strip the leading '/'
[autotest-zwu.git] / client / common_lib / host_queue_entry_states.py
blobb59405964416eb444c1a9b27642a9be420c009bc
1 """
2 This module contains the status enums for use by HostQueueEntrys in the
3 database. It is a stand alone module as these status strings are needed
4 from various disconnected pieces of code that should not depend on everything
5 that frontend.afe.models depends on such as RPC clients.
6 """
8 from autotest_lib.client.common_lib import enum
10 Status = enum.Enum('Queued', 'Starting', 'Verifying', 'Pending', 'Waiting',
11 'Running', 'Gathering', 'Parsing', 'Archiving', 'Aborted',
12 'Completed', 'Failed', 'Stopped', 'Template',
13 string_values=True)
14 ACTIVE_STATUSES = (Status.STARTING, Status.VERIFYING, Status.PENDING,
15 Status.RUNNING, Status.GATHERING)
16 COMPLETE_STATUSES = (Status.ABORTED, Status.COMPLETED, Status.FAILED,
17 Status.STOPPED, Status.TEMPLATE)