diff --git a/wlauto/core/configuration/configuration.py b/wlauto/core/configuration/configuration.py index 9c5698aa..8e9959fc 100644 --- a/wlauto/core/configuration/configuration.py +++ b/wlauto/core/configuration/configuration.py @@ -32,6 +32,18 @@ KIND_MAP = { dict: OrderedDict, } +ITERATION_STATUS = [ + 'NOT_STARTED', + 'RUNNING', + + 'OK', + 'NONCRITICAL', + 'PARTIAL', + 'FAILED', + 'ABORTED', + 'SKIPPED', +] + ########################## ### CONFIG POINT TYPES ### ########################## diff --git a/wlauto/core/result.py b/wlauto/core/result.py index e3659047..c3035ec2 100644 --- a/wlauto/core/result.py +++ b/wlauto/core/result.py @@ -42,6 +42,7 @@ from contextlib import contextmanager from datetime import datetime from wlauto.core.plugin import Plugin +from wlauto.core.configuration.configuration import ITERATION_STATUS from wlauto.exceptions import WAError from wlauto.utils.types import numeric from wlauto.utils.misc import enum_metaclass, merge_dicts_simple @@ -238,17 +239,7 @@ class IterationResult(object): __metaclass__ = enum_metaclass('values', return_name=True) - values = [ - 'NOT_STARTED', - 'RUNNING', - - 'OK', - 'NONCRITICAL', - 'PARTIAL', - 'FAILED', - 'ABORTED', - 'SKIPPED', - ] + values = ITERATION_STATUS def __init__(self, spec): self.spec = spec