| Index: appengine/findit/common/waterfall/failure_type.py
|
| diff --git a/appengine/findit/common/waterfall/failure_type.py b/appengine/findit/common/waterfall/failure_type.py
|
| index f2b7a772d0c6fc69c7018a6eef65cedaf65b2b48..c95c0174bc26be716c5f1a745c3bd81e2e804378 100644
|
| --- a/appengine/findit/common/waterfall/failure_type.py
|
| +++ b/appengine/findit/common/waterfall/failure_type.py
|
| @@ -6,3 +6,13 @@ UNKNOWN = 0x00
|
| INFRA = 0x01
|
| COMPILE = 0x08
|
| TEST = 0x10
|
| +
|
| +
|
| +def GetDescriptionForFailureType(failure_type): # pragma: no cover.
|
| + description = {
|
| + UNKNOWN: 'unknown',
|
| + INFRA: 'infra',
|
| + COMPILE: 'compile',
|
| + TEST: 'test',
|
| + }
|
| + return description.get(failure_type, 'No description for %s' % failure_type)
|
|
|