summaryrefslogtreecommitdiffstats
path: root/meta/classes/testimage.bbclass
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/classes/testimage.bbclass
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/classes/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 914c9b36c8..ded72048bc 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -133,7 +133,7 @@ def get_testimage_configuration(d, test_type, machine):
133 'IMAGE_BASENAME': d.getVar("IMAGE_BASENAME"), 133 'IMAGE_BASENAME': d.getVar("IMAGE_BASENAME"),
134 'IMAGE_PKGTYPE': d.getVar("IMAGE_PKGTYPE"), 134 'IMAGE_PKGTYPE': d.getVar("IMAGE_PKGTYPE"),
135 'STARTTIME': d.getVar("DATETIME"), 135 'STARTTIME': d.getVar("DATETIME"),
136 'HOST_DISTRO': ('-'.join(platform.linux_distribution())).replace(' ', '-'), 136 'HOST_DISTRO': oe.lsb.distro_identifier().replace(' ', '-'),
137 'LAYERS': get_layers(d.getVar("BBLAYERS"))} 137 'LAYERS': get_layers(d.getVar("BBLAYERS"))}
138 return configuration 138 return configuration
139get_testimage_configuration[vardepsexclude] = "DATETIME" 139get_testimage_configuration[vardepsexclude] = "DATETIME"