diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2019-01-02 10:08:13 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-03 12:35:54 +0000 |
commit | fed984dc8e5fac604c156a9a3f7f48eaf94dcfbd (patch) | |
tree | cfeea57c706a93b35383dda7d8ea361102059a8c /meta/classes/testimage.bbclass | |
parent | bb67d1eb522ff5b4450258ef49d54e943cfcb6a8 (diff) | |
download | poky-fed984dc8e5fac604c156a9a3f7f48eaf94dcfbd.tar.gz |
meta/classes/testimage.bbclass: Only validate IMAGE_FSTYPES when is QEMU
When use simpleremote target the flash/boot process is executed
manually, the IMAGE_FSTYPES validation is only needed when execute
testimage against qemu.
The supported_fstypes comes from oeqa.core.target.qemu module.
(From OE-Core rev: e7dc5963adbacc091fe8943119262166977623ad)
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r-- | meta/classes/testimage.bbclass | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index e8fa4a3b32..3c2209af91 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -201,12 +201,13 @@ def testimage_main(d): | |||
201 | machine = d.getVar("MACHINE") | 201 | machine = d.getVar("MACHINE") |
202 | 202 | ||
203 | # Get rootfs | 203 | # Get rootfs |
204 | fstypes = [fs for fs in d.getVar('IMAGE_FSTYPES').split(' ') | 204 | fstypes = d.getVar('IMAGE_FSTYPES').split() |
205 | if fs in supported_fstypes] | 205 | if d.getVar("TEST_TARGET") == "qemu": |
206 | if not fstypes: | 206 | fstypes = [fs for fs in fstypes if fs in supported_fstypes] |
207 | bb.fatal('Unsupported image type built. Add a comptible image to ' | 207 | if not fstypes: |
208 | 'IMAGE_FSTYPES. Supported types: %s' % | 208 | bb.fatal('Unsupported image type built. Add a comptible image to ' |
209 | ', '.join(supported_fstypes)) | 209 | 'IMAGE_FSTYPES. Supported types: %s' % |
210 | ', '.join(supported_fstypes)) | ||
210 | rootfs = '%s.%s' % (image_name, fstypes[0]) | 211 | rootfs = '%s.%s' % (image_name, fstypes[0]) |
211 | 212 | ||
212 | # Get tmpdir (not really used, just for compatibility) | 213 | # Get tmpdir (not really used, just for compatibility) |