diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-15 14:38:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-16 11:46:07 +0000 |
commit | 99f0e68973e078d1d0030741435b51ccbe759ef5 (patch) | |
tree | 1380de0bdb44e4749c5ddf534f4032db70c92dda /meta/lib | |
parent | 8cee6d31bbc7ae2341074471cd36b87bb3748cfe (diff) | |
download | poky-99f0e68973e078d1d0030741435b51ccbe759ef5.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)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-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 4509e0f63d..dab7268829 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 |
@@ -218,7 +219,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor): | |||
218 | configuration = {'TEST_TYPE': 'oeselftest', | 219 | configuration = {'TEST_TYPE': 'oeselftest', |
219 | 'STARTTIME': args.test_start_time, | 220 | 'STARTTIME': args.test_start_time, |
220 | 'MACHINE': self.tc.td["MACHINE"], | 221 | 'MACHINE': self.tc.td["MACHINE"], |
221 | 'HOST_DISTRO': ('-'.join(platform.linux_distribution())).replace(' ', '-'), | 222 | 'HOST_DISTRO': oe.lsb.distro_identifier().replace(' ', '-'), |
222 | 'HOST_NAME': metadata['hostname'], | 223 | 'HOST_NAME': metadata['hostname'], |
223 | 'LAYERS': metadata['layers']} | 224 | 'LAYERS': metadata['layers']} |
224 | return configuration | 225 | return configuration |