From acac45a6fd604d28ef7c23d67482af3d7e8bcfe3 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 15 Nov 2018 14:38:19 +0000 Subject: testimage/testsdk/selftest: Avoid platform.distro_identifier deprecation warnings Use our own lsb function instead as used elsewhere by the codebase. Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/context.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/lib') 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 from random import choice import oeqa +import oe from oeqa.core.context import OETestContext, OETestContextExecutor from oeqa.core.exception import OEQAPreRun, OEQATestNotFound @@ -218,7 +219,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor): configuration = {'TEST_TYPE': 'oeselftest', 'STARTTIME': args.test_start_time, 'MACHINE': self.tc.td["MACHINE"], - 'HOST_DISTRO': ('-'.join(platform.linux_distribution())).replace(' ', '-'), + 'HOST_DISTRO': oe.lsb.distro_identifier().replace(' ', '-'), 'HOST_NAME': metadata['hostname'], 'LAYERS': metadata['layers']} return configuration -- cgit 1.2.3-korg