diff options
| author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-01-13 15:12:45 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-19 22:47:22 +0000 |
| commit | 56a7f41711c0606cc3abd718462f9008d374a6d7 (patch) | |
| tree | 2115a246e00b8e8b102f33b4e94ae9e0d2ee0295 /scripts | |
| parent | c74af56d4b8555a4430de1be21581a93d0876b39 (diff) | |
| download | poky-56a7f41711c0606cc3abd718462f9008d374a6d7.tar.gz | |
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>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/oe-selftest | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-selftest b/scripts/oe-selftest index 5b045e8672..fb33c08512 100755 --- a/scripts/oe-selftest +++ b/scripts/oe-selftest | |||
| @@ -604,7 +604,7 @@ def main(): | |||
| 604 | l_branches = {str(branch) for branch in repo.branches} | 604 | l_branches = {str(branch) for branch in repo.branches} |
| 605 | branch = '%s/%s/%s' % (metadata['hostname'], | 605 | branch = '%s/%s/%s' % (metadata['hostname'], |
| 606 | metadata['layers']['meta'].get('branch', '(nogit)'), | 606 | metadata['layers']['meta'].get('branch', '(nogit)'), |
| 607 | metadata['machine']) | 607 | metadata['config']['MACHINE']) |
| 608 | 608 | ||
| 609 | if branch in l_branches: | 609 | if branch in l_branches: |
| 610 | log.debug('Found branch in local repository, checking out') | 610 | log.debug('Found branch in local repository, checking out') |
| @@ -634,7 +634,7 @@ def main(): | |||
| 634 | values.get('branch', '(nogit)'), values.get('commit', '0'*40)) | 634 | values.get('branch', '(nogit)'), values.get('commit', '0'*40)) |
| 635 | msg = 'Selftest for build %s of %s for machine %s on %s\n\n%s' % ( | 635 | msg = 'Selftest for build %s of %s for machine %s on %s\n\n%s' % ( |
| 636 | log_prefix[12:], metadata['distro']['pretty_name'], | 636 | log_prefix[12:], metadata['distro']['pretty_name'], |
| 637 | metadata['machine'], metadata['hostname'], layer_info) | 637 | metadata['config']['MACHINE'], metadata['hostname'], layer_info) |
| 638 | 638 | ||
| 639 | log.debug('Commiting results to local repository') | 639 | log.debug('Commiting results to local repository') |
| 640 | repo.index.commit(msg) | 640 | repo.index.commit(msg) |
