diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-04-24 16:39:02 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2014-04-28 09:51:28 +0100 |
commit | eb28f829949329d6dd09b4ea66d62334d547205b (patch) | |
tree | ebcf7443d6574a29451006ca0c266644d9b07b65 /framework/status.py | |
parent | 6cb822d163381099a637a6abab0ed7427ad9da5e (diff) |
framework: add support for a "timeout" status
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'framework/status.py')
-rw-r--r-- | framework/status.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/framework/status.py b/framework/status.py index aa42487f8..8ab72f77f 100644 --- a/framework/status.py +++ b/framework/status.py @@ -40,8 +40,8 @@ dmesg-warn warn dmesg-fail fail -crash timeout +crash SKIP and NOTRUN are not factored into regressions and fixes, they are counted seperately. They also derive from a sublcass of Status, which always returns @@ -63,6 +63,7 @@ __all__ = ['NOTRUN', 'DMESG_WARN', 'DMESG_FAIL', 'SKIP', + 'TIMEOUT', 'ALL'] @@ -81,7 +82,8 @@ def status_lookup(status): 'crash': CRASH, 'dmesg-warn': DMESG_WARN, 'dmesg-fail': DMESG_FAIL, - 'notrun': NOTRUN} + 'notrun': NOTRUN, + 'timeout': TIMEOUT} try: return status_dict[status] @@ -223,7 +225,9 @@ FAIL = Status('fail', 30) DMESG_FAIL = Status('dmesg-fail', 40) -CRASH = Status('crash', 50) +TIMEOUT = Status('timeout', 50) + +CRASH = Status('crash', 60) # A tuple (ordered, immutable) of all statuses in this module -ALL = (PASS, WARN, DMESG_WARN, FAIL, DMESG_FAIL, CRASH, SKIP, NOTRUN) +ALL = (PASS, WARN, DMESG_WARN, FAIL, DMESG_FAIL, TIMEOUT, CRASH, SKIP, NOTRUN) |