mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
oeqa.utils.metadata: allow storing any bitbake config variables
Make it possible to store any bitbake config variables in the metadata.
Config values will be stored under a new config element in the xml report:
<config>
<variable name="MACHINE">qemux86</variable>
</config>
The value of MACHINE is moved there instead of having a dedicated
<machine> element.
[YOCTO #10590]
(From OE-Core rev: 6e7e6e37664b0a86111272f5f6f4a4e1d0f23302)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c74af56d4b
commit
56a7f41711
@@ -604,7 +604,7 @@ def main():
|
||||
l_branches = {str(branch) for branch in repo.branches}
|
||||
branch = '%s/%s/%s' % (metadata['hostname'],
|
||||
metadata['layers']['meta'].get('branch', '(nogit)'),
|
||||
metadata['machine'])
|
||||
metadata['config']['MACHINE'])
|
||||
|
||||
if branch in l_branches:
|
||||
log.debug('Found branch in local repository, checking out')
|
||||
@@ -634,7 +634,7 @@ def main():
|
||||
values.get('branch', '(nogit)'), values.get('commit', '0'*40))
|
||||
msg = 'Selftest for build %s of %s for machine %s on %s\n\n%s' % (
|
||||
log_prefix[12:], metadata['distro']['pretty_name'],
|
||||
metadata['machine'], metadata['hostname'], layer_info)
|
||||
metadata['config']['MACHINE'], metadata['hostname'], layer_info)
|
||||
|
||||
log.debug('Commiting results to local repository')
|
||||
repo.index.commit(msg)
|
||||
|
||||
Reference in New Issue
Block a user