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 <[email protected]>
---
 scripts/utils.py | 3 +++
 1 file changed, 3 insertions(+)

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'):]
-- 
2.29.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53182): https://lists.yoctoproject.org/g/yocto/message/53182
Mute This Topic: https://lists.yoctoproject.org/mt/82226078/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to