diff options
author | Laurent Bonnans <laurent.bonnans@here.com> | 2019-03-19 17:30:05 +0100 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-04-29 09:54:20 +0200 |
commit | 7c16c21bc29a841c58621ee0ef3f4d81083ef0e0 (patch) | |
tree | ce4c9119f6fe8236466766392f904aee61dcb356 /lib/oeqa/selftest/cases/testutils.py | |
parent | 17bd7982758374b911647a33792eba4e2224f640 (diff) | |
download | meta-updater-7c16c21bc29a841c58621ee0ef3f4d81083ef0e0.tar.gz |
Fix in oe-selftests/qemu_launch
Should build `imagename` and not 'core-image-minimal' in all cases
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Diffstat (limited to 'lib/oeqa/selftest/cases/testutils.py')
-rw-r--r-- | lib/oeqa/selftest/cases/testutils.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/oeqa/selftest/cases/testutils.py b/lib/oeqa/selftest/cases/testutils.py index 77bcad7..d381d7d 100644 --- a/lib/oeqa/selftest/cases/testutils.py +++ b/lib/oeqa/selftest/cases/testutils.py | |||
@@ -10,14 +10,13 @@ from qemucommand import QemuCommand | |||
10 | 10 | ||
11 | def qemu_launch(efi=False, machine=None, imagename=None): | 11 | def qemu_launch(efi=False, machine=None, imagename=None): |
12 | logger = logging.getLogger("selftest") | 12 | logger = logging.getLogger("selftest") |
13 | logger.info('Running bitbake to build core-image-minimal') | 13 | if imagename is None: |
14 | bitbake('core-image-minimal') | 14 | imagename = 'core-image-minimal' |
15 | logger.info('Running bitbake to build {}'.format(imagename)) | ||
16 | bitbake(imagename) | ||
15 | # Create empty object. | 17 | # Create empty object. |
16 | args = type('', (), {})() | 18 | args = type('', (), {})() |
17 | if imagename: | 19 | args.imagename = imagename |
18 | args.imagename = imagename | ||
19 | else: | ||
20 | args.imagename = 'core-image-minimal' | ||
21 | args.mac = None | 20 | args.mac = None |
22 | # Could use DEPLOY_DIR_IMAGE here but it's already in the machine | 21 | # Could use DEPLOY_DIR_IMAGE here but it's already in the machine |
23 | # subdirectory. | 22 | # subdirectory. |