summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-15 14:38:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-16 11:46:07 +0000
commit99f0e68973e078d1d0030741435b51ccbe759ef5 (patch)
tree1380de0bdb44e4749c5ddf534f4032db70c92dda /meta/lib
parent8cee6d31bbc7ae2341074471cd36b87bb3748cfe (diff)
downloadpoky-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.py3
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
11from random import choice 11from random import choice
12 12
13import oeqa 13import oeqa
14import oe
14 15
15from oeqa.core.context import OETestContext, OETestContextExecutor 16from oeqa.core.context import OETestContext, OETestContextExecutor
16from oeqa.core.exception import OEQAPreRun, OEQATestNotFound 17from 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