Skip to content

Commit 7fa9441

Browse files
tprrtrpurdie
authored andcommitted
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] Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
1 parent 5da1663 commit 7fa9441

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Post/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
class ErrorType(object):
1717
RECIPE = 'recipe'
18+
CHECK_LAYER = 'check-layer'
1819
CORE = 'core'
1920
BITBAKE_SELFTEST = 'bitbake-selftest'
2021
OE_SELFTEST = 'oe-selftest'
@@ -26,6 +27,7 @@ class InvalidErrorType(Exception):
2627
class Build(models.Model):
2728
ERROR_TYPE_CHOICES = (
2829
(ErrorType.RECIPE, 'Recipe'),
30+
(ErrorType.CHECK_LAYER, 'check-layer'),
2931
(ErrorType.CORE, 'Core'),
3032
(ErrorType.BITBAKE_SELFTEST, 'Bitbake selftest'),
3133
(ErrorType.OE_SELFTEST, 'OE selftest'),

0 commit comments

Comments
 (0)