diff options
| author | Thomas Roos <throos@amazon.de> | 2023-04-14 16:34:17 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-20 11:56:05 +0100 |
| commit | 150464e2ffa0b19fca347a4b8c159ac053455e09 (patch) | |
| tree | e8c0638a0b58f104eff96df2e12ed80696362189 /meta/lib | |
| parent | 67e22b9fc9c7dc7bdedf07f1c2d64f61d569b89e (diff) | |
| download | poky-150464e2ffa0b19fca347a4b8c159ac053455e09.tar.gz | |
oeqa/utils/metadata.py: Fix running oe-selftest running with no distro set
This will use default values when no distribution is set.
[YOCTO #15086]
(From OE-Core rev: 888fe63b46efceeff08dbe8c4f66fec33d06cb7a)
Signed-off-by: Thomas Roos <throos@amazon.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/utils/metadata.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils/metadata.py index 8013aa684d..15ec190c4a 100644 --- a/meta/lib/oeqa/utils/metadata.py +++ b/meta/lib/oeqa/utils/metadata.py | |||
| @@ -27,9 +27,9 @@ def metadata_from_bb(): | |||
| 27 | data_dict = get_bb_vars() | 27 | data_dict = get_bb_vars() |
| 28 | 28 | ||
| 29 | # Distro information | 29 | # Distro information |
| 30 | info_dict['distro'] = {'id': data_dict['DISTRO'], | 30 | info_dict['distro'] = {'id': data_dict.get('DISTRO', 'NODISTRO'), |
| 31 | 'version_id': data_dict['DISTRO_VERSION'], | 31 | 'version_id': data_dict.get('DISTRO_VERSION', 'NO_DISTRO_VERSION'), |
| 32 | 'pretty_name': '%s %s' % (data_dict['DISTRO'], data_dict['DISTRO_VERSION'])} | 32 | 'pretty_name': '%s %s' % (data_dict.get('DISTRO', 'NODISTRO'), data_dict.get('DISTRO_VERSION', 'NO_DISTRO_VERSION'))} |
| 33 | 33 | ||
| 34 | # Host distro information | 34 | # Host distro information |
| 35 | os_release = get_os_release() | 35 | os_release = get_os_release() |
