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.li...@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

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to