[yocto-autobuilder-helper,2/2] scripts/utils.py: Add reporting for yocto-check-layer

Submitted by Yi Fan Yu on April 20, 2021, 2:36 a.m. | Patch ID: 179676

Details

Message ID 20210420023612.29430-2-yifan.yu@windriver.com
State New
Headers show

Commit Message

Yi Fan Yu April 20, 2021, 2:36 a.m.
The default behavior is to look for a bitbake command,
which fails and produces a confusing output of [-1:].

[YOCTO #14208]

Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
---
 scripts/utils.py | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/scripts/utils.py b/scripts/utils.py
index bf1d989..4c73f81 100644
--- a/scripts/utils.py
+++ b/scripts/utils.py
@@ -330,6 +330,9 @@  class ErrorReport(object):
         elif  'oe-selftest' in command:
             report['error_type'] = 'oe-selftest'
             failure['task'] = command[command.find('oe-selftest'):]
+        elif 'yocto-check-layer' in command:
+            report['error_type'] = 'check-layer'
+            failure['task'] = command[command.find('yocto-check-layer'):]
         else:
             report['error_type'] = 'core'
             failure['task'] = command[command.find('bitbake'):]