[yocto] [PATCH][yocto-autobuilder] lib/buildsteps.py: fix report creation in nigthly-oecore
Aníbal Limón
anibal.limon at linux.intel.com
Fri Jul 29 08:19:08 PDT 2016
+ beth
On 07/29/2016 10:10 AM, Aníbal Limón wrote:
> nightly-oecore buildset doesn't prove got_revision property
> so when got_revision is None use got_revision_oecore instead.
>
> [YOCTO #10051]
>
> Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
> ---
> lib/python2.7/site-packages/autobuilder/lib/buildsteps.py | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/lib/python2.7/site-packages/autobuilder/lib/buildsteps.py b/lib/python2.7/site-packages/autobuilder/lib/buildsteps.py
> index eee0c1b..37ac8b0 100644
> --- a/lib/python2.7/site-packages/autobuilder/lib/buildsteps.py
> +++ b/lib/python2.7/site-packages/autobuilder/lib/buildsteps.py
> @@ -118,8 +118,11 @@ class BitbakeShellCommand(ShellCommand):
> report['target_sys'] = vrs['TARGET_SYS']
>
> report['component'] = 'bitbake'
> - report['branch_commit'] = self.getProperty('branch') + ': ' + \
> - self.getProperty('got_revision')
> + branch = self.getProperty('branch')
> + revision = self.getProperty('got_revision')
> + if not revision:
> + revision = self.getProperty('got_revision_oecore')
> + report['branch_commit'] = branch + ': ' + revision
>
> failure = {}
> failure['package'] = "bitbake-%s" % vrs['BB_VERSION']
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160729/f52f0db1/attachment.pgp>
More information about the yocto
mailing list