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/classes | |
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/classes')
-rw-r--r-- | meta/classes/testimage.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/testsdk.bbclass | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index ba2d9c491b..f2ff91da9d 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -151,7 +151,7 @@ def get_testimage_configuration(d, test_type, machine): | |||
151 | 'IMAGE_BASENAME': d.getVar("IMAGE_BASENAME"), | 151 | 'IMAGE_BASENAME': d.getVar("IMAGE_BASENAME"), |
152 | 'IMAGE_PKGTYPE': d.getVar("IMAGE_PKGTYPE"), | 152 | 'IMAGE_PKGTYPE': d.getVar("IMAGE_PKGTYPE"), |
153 | 'STARTTIME': d.getVar("DATETIME"), | 153 | 'STARTTIME': d.getVar("DATETIME"), |
154 | 'HOST_DISTRO': ('-'.join(platform.linux_distribution())).replace(' ', '-'), | 154 | 'HOST_DISTRO': oe.lsb.distro_identifier().replace(' ', '-'), |
155 | 'LAYERS': get_layers(d.getVar("BBLAYERS"))} | 155 | 'LAYERS': get_layers(d.getVar("BBLAYERS"))} |
156 | return configuration | 156 | return configuration |
157 | get_testimage_configuration[vardepsexclude] = "DATETIME" | 157 | get_testimage_configuration[vardepsexclude] = "DATETIME" |
diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass index 5b9bf7b262..458c3f40b0 100644 --- a/meta/classes/testsdk.bbclass +++ b/meta/classes/testsdk.bbclass | |||
@@ -23,7 +23,7 @@ def get_sdk_configuration(d, test_type): | |||
23 | 'IMAGE_BASENAME': d.getVar("IMAGE_BASENAME"), | 23 | 'IMAGE_BASENAME': d.getVar("IMAGE_BASENAME"), |
24 | 'IMAGE_PKGTYPE': d.getVar("IMAGE_PKGTYPE"), | 24 | 'IMAGE_PKGTYPE': d.getVar("IMAGE_PKGTYPE"), |
25 | 'STARTTIME': d.getVar("DATETIME"), | 25 | 'STARTTIME': d.getVar("DATETIME"), |
26 | 'HOST_DISTRO': ('-'.join(platform.linux_distribution())).replace(' ', '-'), | 26 | 'HOST_DISTRO': oe.lsb.distro_identifier().replace(' ', '-'), |
27 | 'LAYERS': get_layers(d.getVar("BBLAYERS"))} | 27 | 'LAYERS': get_layers(d.getVar("BBLAYERS"))} |
28 | return configuration | 28 | return configuration |
29 | get_sdk_configuration[vardepsexclude] = "DATETIME" | 29 | get_sdk_configuration[vardepsexclude] = "DATETIME" |