diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-15 14:38:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-16 14:31:33 +0000 |
commit | 237ff3e4627afd45ab8f5710ad6a5eaba0aaa94d (patch) | |
tree | f04d95e7d6615848b96540633c334d9583611453 /meta/lib/oeqa/selftest | |
parent | ea1ffae258574598b9204ef9b2b6b375dcc0d079 (diff) | |
download | poky-237ff3e4627afd45ab8f5710ad6a5eaba0aaa94d.tar.gz |
testimage/testsdk/selftest: Avoid platform.distro_identifier deprecation warnings
Use our own lsb function instead as used elsewhere by the codebase.
(From OE-Core rev: acac45a6fd604d28ef7c23d67482af3d7e8bcfe3)
(From OE-Core rev: 570256a64af5a3fa994a20a5cc4c74d59ffc361f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r-- | meta/lib/oeqa/selftest/context.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py index 84878ea193..c521290327 100644 --- a/meta/lib/oeqa/selftest/context.py +++ b/meta/lib/oeqa/selftest/context.py | |||
@@ -11,6 +11,7 @@ from shutil import copyfile | |||
11 | from random import choice | 11 | from random import choice |
12 | 12 | ||
13 | import oeqa | 13 | import oeqa |
14 | import oe | ||
14 | 15 | ||
15 | from oeqa.core.context import OETestContext, OETestContextExecutor | 16 | from oeqa.core.context import OETestContext, OETestContextExecutor |
16 | from oeqa.core.exception import OEQAPreRun, OEQATestNotFound | 17 | from oeqa.core.exception import OEQAPreRun, OEQATestNotFound |
@@ -223,7 +224,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor): | |||
223 | configuration = {'TEST_TYPE': 'oeselftest', | 224 | configuration = {'TEST_TYPE': 'oeselftest', |
224 | 'STARTTIME': args.test_start_time, | 225 | 'STARTTIME': args.test_start_time, |
225 | 'MACHINE': self.tc.td["MACHINE"], | 226 | 'MACHINE': self.tc.td["MACHINE"], |
226 | 'HOST_DISTRO': ('-'.join(platform.linux_distribution())).replace(' ', '-'), | 227 | 'HOST_DISTRO': oe.lsb.distro_identifier().replace(' ', '-'), |
227 | 'HOST_NAME': metadata['hostname'], | 228 | 'HOST_NAME': metadata['hostname'], |
228 | 'LAYERS': metadata['layers']} | 229 | 'LAYERS': metadata['layers']} |
229 | return configuration | 230 | return configuration |