1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-19 04:21:17 +00:00

Moved iteration status list

This commit is contained in:
Sebastian Goscik 2016-09-21 13:50:05 +01:00
parent a347ea7d61
commit 87ee7b1337
2 changed files with 14 additions and 11 deletions

View File

@ -32,6 +32,18 @@ KIND_MAP = {
dict: OrderedDict, dict: OrderedDict,
} }
ITERATION_STATUS = [
'NOT_STARTED',
'RUNNING',
'OK',
'NONCRITICAL',
'PARTIAL',
'FAILED',
'ABORTED',
'SKIPPED',
]
########################## ##########################
### CONFIG POINT TYPES ### ### CONFIG POINT TYPES ###
########################## ##########################

View File

@ -42,6 +42,7 @@ from contextlib import contextmanager
from datetime import datetime from datetime import datetime
from wlauto.core.plugin import Plugin from wlauto.core.plugin import Plugin
from wlauto.core.configuration.configuration import ITERATION_STATUS
from wlauto.exceptions import WAError from wlauto.exceptions import WAError
from wlauto.utils.types import numeric from wlauto.utils.types import numeric
from wlauto.utils.misc import enum_metaclass, merge_dicts_simple from wlauto.utils.misc import enum_metaclass, merge_dicts_simple
@ -238,17 +239,7 @@ class IterationResult(object):
__metaclass__ = enum_metaclass('values', return_name=True) __metaclass__ = enum_metaclass('values', return_name=True)
values = [ values = ITERATION_STATUS
'NOT_STARTED',
'RUNNING',
'OK',
'NONCRITICAL',
'PARTIAL',
'FAILED',
'ABORTED',
'SKIPPED',
]
def __init__(self, spec): def __init__(self, spec):
self.spec = spec self.spec = spec