[yocto] [[yocto-autobuilder][PATCHv2] 08/15] lib/buildsteps.py: BitbakeShellCommand add support for error_type

Aníbal Limón anibal.limon at linux.intel.com
Tue Jun 21 16:07:45 PDT 2016


When generate bitbake error reports two type of errors could be happen
a bitbake generic one or when is running bitbake-selftest.

Also split the command removing environment only leave the bitbake
command and it's arguments.

Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
 lib/python2.7/site-packages/autobuilder/lib/buildsteps.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/python2.7/site-packages/autobuilder/lib/buildsteps.py b/lib/python2.7/site-packages/autobuilder/lib/buildsteps.py
index 9f63a2b..0977518 100644
--- a/lib/python2.7/site-packages/autobuilder/lib/buildsteps.py
+++ b/lib/python2.7/site-packages/autobuilder/lib/buildsteps.py
@@ -126,7 +126,13 @@ class BitbakeShellCommand(ShellCommand):
 
         failure = {}
         failure['package'] = "bitbake-%s" % vrs['BB_VERSION']
-        failure['task'] = self.command
+        if 'bitbake-selftest' in self.command:
+            report['error_type'] = 'B'
+            failure['task'] = self.command[self.command.find('bitbake-selftest'):]
+        else:
+            report['error_type'] = 'C'
+            failure['task'] = self.command[self.command.find('bitbake'):]
+
         failure['log'] = "\n".join(log)
 
         report['failures'] = [failure]
-- 
2.1.4




More information about the yocto mailing list