Skip to contentSkip to conversation

models: Add a new error type for check-layer

PATCH New Thomas Perrot 1 participant 1 message Jun 23, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 models: Add a new error type for check-layer

Defines a new ErrorType and ERROR_TYPE_CHOICES, in order to support this kind of errors.

[YOCTO #14208]

---
 Post/models.py | 2 ++
 1 file changed, 2 insertions(+)
Post/models.py +2 -0
index 3fa66f2198a4..b7a913c82359 100644
@@ -15,6 +15,7 @@ import Levenshtein
 
 class ErrorType(object):
     RECIPE = 'recipe'
+    CHECK_LAYER = 'check-layer'
     CORE = 'core'
     BITBAKE_SELFTEST = 'bitbake-selftest'
     OE_SELFTEST = 'oe-selftest'
@@ -26,6 +27,7 @@ class InvalidErrorType(Exception):
 class Build(models.Model):
     ERROR_TYPE_CHOICES = (
             (ErrorType.RECIPE, 'Recipe'),
+            (ErrorType.CHECK_LAYER, 'check-layer'),
             (ErrorType.CORE, 'Core'),
             (ErrorType.BITBAKE_SELFTEST, 'Bitbake selftest'),
             (ErrorType.OE_SELFTEST, 'OE selftest'),
Signature · 1 line
2.31.1